1 => Open /etc/network/interfaces file and make entry like below given format.
#vim /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
dns-nameservers 8.8.8.8
#save file and exit
#/etc/init.d/networking restart
# ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:56:bc:20:ee
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:febc:20ee/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:251416556 errors:0 dropped:12715298 overruns:0 frame:0
TX packets:133142418 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:205568847089 (205.5 GB) TX bytes:238098048978 (238.0 GB)
################### Enjoy #########################
No comments:
Post a Comment