Set permanent IP
edit file /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
BROADCAST=192.168.1.255
HWADDR=00:30:0a:4b:72:f0
IPADDR=192.168.1.15
NETMASK=255.255.255.0
NETWORK=192.168.1.0
ONBOOT=yes
GATEWAY=192.168.1.1
TYPE=Ethernet
to configure route table on every boot
edit file /etc/rc.d/rc.local
route add default gw 192.168.1.1 dev eth0
route add -net 10.0.8.0 netmask 255.255.255.0 gw 10.0.8.1
DEVICE=eth0
BOOTPROTO=none
BROADCAST=192.168.1.255
HWADDR=00:30:0a:4b:72:f0
IPADDR=192.168.1.15
NETMASK=255.255.255.0
NETWORK=192.168.1.0
ONBOOT=yes
GATEWAY=192.168.1.1
TYPE=Ethernet
to configure route table on every boot
edit file /etc/rc.d/rc.local
route add default gw 192.168.1.1 dev eth0
route add -net 10.0.8.0 netmask 255.255.255.0 gw 10.0.8.1
0 Comments:
Post a Comment
<< Home