Additions:
On Solaris:
snoop -d <interface> -x0 -v 'ether[20:2] = 0x2000'
Additions:
Additions:
Additions:
tcpdump -nn -v -s 1500 -c 1 'ether[20:2]
0x2000' -i eth0
Deletions:
tcpdump -nn -v -i eth0 -s 1500 -c 1 'ether[20:2]
0x2000'
Additions:
# then do a broadcast ping, possibly on another screen
Additions:
Getting vlan id
Need to see what vlan id an interface is connected to?
tcpdump -nn -v -i eth0 -s 1500 -c 1 'ether[20:2] 0x2000'
Additions:
Additions:
Network Services
Deletions:
Additions:
Deletions:
Additions:
Deletions:
Additions:
Deletions:
Bind in 10 minutes
Bind usually comes with Redhat / Freebsd. To configure a simple forwarding nameserver with a local zone, do the followings:
Edit named.conf
options {
forwarders {
1.2.3.4;
2.3.4.5;
};
}
zone "mydomain.home" IN {
type master;
file "mydomain.home.zone";
};
zone "1.168.192.in-addr.arpa" IN {
type master;
file "1.168.192.ptr";
};
If you have a DNS server somewhere, and need to config this DNS as a slave zone, do:
zone "realdomain.com" {
type slave;
file "realdomain.com.zone";
masters {
7.8.9.0;
};
};
Then create the master zone file like
$ORIGIN mydomain.home
$TTL 3600
mydomain.home. IN SOA ns1.mydomain.home. hostmaster.mydomain.home. (
2006051501 ; Serial
10800 ; Refresh
3600 ; Retry
604800 ; Expire
86400 ; Minimum TTL
)
IN NS ns1.mydomain.home.
IN A 192.168.13.30
ns1 IN A 192.168.13.30
free IN A 192.168.13.30
hopchai.home IN A 192.168.13.2
Bind DNS SPF record
SPF records can be build on
OpenSPF.org [
http://www.openspf.org∞]
Inserting a long SPF record is now possible with
IN TXT "v=spf1 ip4:200.1.1.0/24 a ptr a:domain1.com
a:domain2.com a:domain4.com " "a:domain3.com a:domain5.com a:domain6.com
mx:mx1.com mx:mx2.com mx:mx3.com mx:mx4.com mx:mx5.com include:my_isp.com ~all"
Additions:
Bind9 In 10 minutes
DNS zone file
PowerDNS - a DNS server designed to work with a database backend
Other network stuff
ifconfig
Linux wireless networking
After driver and firmware are installed, use these commands to bring up your wireless NIC. Here is an excellent wiki for
Linux wireless networking∞.
iwconfig eth1 channel 11
iwconfig eth1 key restricted s:mysecretkey00
iwconfig eth1 mode Managed
ifup eth1
Firewire networking
Firewire networking under linux is extremely easy. Tested on FC5
Note: On Fedora Core 7, firewall stack has been rewritten. Don't know what that means but the default kernel does not have eth1394 enabled. To use firewire networking, one need to re-compile the kernel.
modprobe eth1394
echo "alias eth1 eth1394 >> /etc/modprobe.conf"
ifconfig eth1 10.0.0.1 netmask 255.255.255.0
It's a little tricker to get firewire networking to work on FC6. I got the following after many attempts. Remember this will break when the kernel is upgraded.
alias eth1 eth1394
install eth1394 modprobe -k raw1394; insmod /lib/modules/2.6.18-1.2798.fc6/kernel/drivers/ieee1394/eth1394.ko
Bind in 10 minutes
Bind usually comes with Redhat / Freebsd. To configure a simple forwarding nameserver with a local zone, do the followings:
Edit named.conf
options {
forwarders {
1.2.3.4;
2.3.4.5;
};
}
zone "mydomain.home" IN {
type master;
file "mydomain.home.zone";
};
zone "1.168.192.in-addr.arpa" IN {
type master;
file "1.168.192.ptr";
};
If you have a DNS server somewhere, and need to config this DNS as a slave zone, do:
zone "realdomain.com" {
type slave;
file "realdomain.com.zone";
masters {
7.8.9.0;
};
};
Then create the master zone file like
$ORIGIN mydomain.home
$TTL 3600
mydomain.home. IN SOA ns1.mydomain.home. hostmaster.mydomain.home. (
2006051501 ; Serial
10800 ; Refresh
3600 ; Retry
604800 ; Expire
86400 ; Minimum TTL
)
IN NS ns1.mydomain.home.
IN A 192.168.13.30
ns1 IN A 192.168.13.30
free IN A 192.168.13.30
hopchai.home IN A 192.168.13.2
Bind DNS SPF record
SPF records can be build on
OpenSPF.org [
http://www.openspf.org∞]
Inserting a long SPF record is now possible with
IN TXT "v=spf1 ip4:200.1.1.0/24 a ptr a:domain1.com
a:domain2.com a:domain4.com " "a:domain3.com a:domain5.com a:domain6.com
mx:mx1.com mx:mx2.com mx:mx3.com mx:mx4.com mx:mx5.com include:my_isp.com ~all"
Deletions:
Other network stuff
DNS zone file
ifconfig
PowerDNS - a DNS server designed to work with a database backend
Linux wireless networking
After driver and firmware are installed, use these commands to bring up your wireless NIC. Here is an excellent wiki for
Linux wireless networking∞.
iwconfig eth1 channel 11
iwconfig eth1 key restricted s:mysecretkey00
iwconfig eth1 mode Managed
ifup eth1
Firewire networking
Firewire networking under linux is extremely easy. Tested on FC5
Note: On Fedora Core 7, firewall stack has been rewritten. Don't know what that means but the default kernel does not have eth1394 enabled. To use firewire networking, one need to re-compile the kernel.
modprobe eth1394
echo "alias eth1 eth1394 >> /etc/modprobe.conf"
ifconfig eth1 10.0.0.1 netmask 255.255.255.0
It's a little tricker to get firewire networking to work on FC6. I got the following after many attempts. Remember this will break when the kernel is upgraded.
alias eth1 eth1394
install eth1394 modprobe -k raw1394; insmod /lib/modules/2.6.18-1.2798.fc6/kernel/drivers/ieee1394/eth1394.ko
Bind in 10 minutes
Bind usually comes with Redhat / Freebsd. To configure a simple forwarding nameserver with a local zone, do the followings:
Edit named.conf
options {
forwarders {
1.2.3.4;
2.3.4.5;
};
}
zone "mydomain.home" IN {
type master;
file "mydomain.home.zone";
};
zone "1.168.192.in-addr.arpa" IN {
type master;
file "1.168.192.ptr";
};
If you have a DNS server somewhere, and need to config this DNS as a slave zone, do:
zone "realdomain.com" {
type slave;
file "realdomain.com.zone";
masters {
7.8.9.0;
};
};
Then create the master zone file like
$ORIGIN mydomain.home
$TTL 3600
mydomain.home. IN SOA ns1.mydomain.home. hostmaster.mydomain.home. (
2006051501 ; Serial
10800 ; Refresh
3600 ; Retry
604800 ; Expire
86400 ; Minimum TTL
)
IN NS ns1.mydomain.home.
IN A 192.168.13.30
ns1 IN A 192.168.13.30
free IN A 192.168.13.30
hopchai.home IN A 192.168.13.2
Bind DNS SPF record
SPF records can be build on
OpenSPF.org [
http://www.openspf.org∞]
Inserting a long SPF record is now possible with
IN TXT "v=spf1 ip4:200.1.1.0/24 a ptr a:domain1.com
a:domain2.com a:domain4.com " "a:domain3.com a:domain5.com a:domain6.com
mx:mx1.com mx:mx2.com mx:mx3.com mx:mx4.com mx:mx5.com include:my_isp.com ~all"
Additions:
Additions:
Note: On Fedora Core 7, firewall stack has been rewritten. Don't know what that means but the default kernel does not have eth1394 enabled. To use firewire networking, one need to re-compile the kernel.
Additions:
Deletions:
Additions:
Software firewall
iptables
ipfw
DNS zone file
ifconfig
Linux wireless networking
After driver and firmware are installed, use these commands to bring up your wireless NIC. Here is an excellent wiki for
Linux wireless networking∞.
iwconfig eth1 channel 11
iwconfig eth1 key restricted s:mysecretkey00
iwconfig eth1 mode Managed
ifup eth1
Firewire networking
Firewire networking under linux is extremely easy. Tested on FC5
modprobe eth1394
echo "alias eth1 eth1394 >> /etc/modprobe.conf"
ifconfig eth1 10.0.0.1 netmask 255.255.255.0
It's a little tricker to get firewire networking to work on FC6. I got the following after many attempts. Remember this will break when the kernel is upgraded.
alias eth1 eth1394
install eth1394 modprobe -k raw1394; insmod /lib/modules/2.6.18-1.2798.fc6/kernel/drivers/ieee1394/eth1394.ko
Bind in 10 minutes
Bind usually comes with Redhat / Freebsd. To configure a simple forwarding nameserver with a local zone, do the followings:
Edit named.conf
options {
forwarders {
1.2.3.4;
2.3.4.5;
};
}
zone "mydomain.home" IN {
type master;
file "mydomain.home.zone";
};
zone "1.168.192.in-addr.arpa" IN {
type master;
file "1.168.192.ptr";
};
If you have a DNS server somewhere, and need to config this DNS as a slave zone, do:
zone "realdomain.com" {
type slave;
file "realdomain.com.zone";
masters {
7.8.9.0;
};
};
Then create the master zone file like
$ORIGIN mydomain.home
$TTL 3600
mydomain.home. IN SOA ns1.mydomain.home. hostmaster.mydomain.home. (
2006051501 ; Serial
10800 ; Refresh
3600 ; Retry
604800 ; Expire
86400 ; Minimum TTL
)
IN NS ns1.mydomain.home.
IN A 192.168.13.30
ns1 IN A 192.168.13.30
free IN A 192.168.13.30
hopchai.home IN A 192.168.13.2
Bind DNS SPF record
SPF records can be build on
OpenSPF.org [
http://www.openspf.org∞]
Inserting a long SPF record is now possible with
IN TXT "v=spf1 ip4:200.1.1.0/24 a ptr a:domain1.com
a:domain2.com a:domain4.com " "a:domain3.com a:domain5.com a:domain6.com
mx:mx1.com mx:mx2.com mx:mx3.com mx:mx4.com mx:mx5.com include:my_isp.com ~all"