Networking Commands and Tips
Also see:
An introduction to Debian networking setup
Display the kernel value of the domain name:
cat /proc/sys/kernel/domainname
Display the kernel value of the host name:
cat /proc/sys/kernel/hostname
Example network setup commands:
ifconfig eth0 172.21.132.38 broadcast 172.21.255.255 netmask 255.255.0.0
route add -net 172.21.0.0 netmask 255.255.0.0
# route add default gw 172.21.0.1 metric 1
route add -net 172.21.0.0 gw 172.21.0.1 metric 1
route add -net 192.77.0.0 gw 172.21.0.1 metric 1