Saturday, December 20, 2008

Linux networking

Let me give the basics of linux networking basics here.

1.To assign an IP address and default gateway to eth0 interface,

#ifconfig eth0 10.37.111.3 netmask 255.255.0.0
#route add default gw 10.37.111.1

#ifconfig ----> shows the current ip and gateway details

No comments: