Dear Friends
I have 2 netcards (eth0 to Internet and eth1 to internal network) in CENTOS 4.2, bit when I boot system the up eth0 and et1i [OK].
When I run ifconfig the eth1 has not IP configure, then I run command ifdown eth1 and ifup eth1, after eth1 is work perfect.
Below I show file /etc/sysconfig/network-scripts/ifcfg-eth1
# Please read /usr/share/doc/initscripts-*/sysconfig.txt # for the documentation of these parameters. IPV6INIT=no ONBOOT=yes USERCTL=no PEERDNS=yes TYPE=Ethernet DEVICE=eth1 HWADDR=00:60:08:3e:0a:d1 BOOTPROTO=none NETMASK=255.255.255.0 IPADDR=192.168.1.1
and route-eth1 GATEWAY0=192.168.1.1 NETMASK0=255.255.255.0 ADDRESS0=192.168.1.0
When I run ifup eth1 , follow messages show me.
ifup eth1 RTNETLINK answers: File exists
When I run command route -n , follow messages show me.
# route -n
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
But I don't know net 169.254.0.0.
Thanks
Adriano
Am Mo, den 12.12.2005 schrieb Adriano Frare um 11:29:
I have 2 netcards (eth0 to Internet and eth1 to internal network) in CENTOS 4.2, bit when I boot system the up eth0 and et1i [OK].
When I run ifconfig the eth1 has not IP configure, then I run command ifdown eth1 and ifup eth1, after eth1 is work perfect.
Below I show file /etc/sysconfig/network-scripts/ifcfg-eth1
# Please read /usr/share/doc/initscripts-*/sysconfig.txt # for the documentation of these parameters. IPV6INIT=no ONBOOT=yes USERCTL=no PEERDNS=yes TYPE=Ethernet DEVICE=eth1 HWADDR=00:60:08:3e:0a:d1 BOOTPROTO=none NETMASK=255.255.255.0 IPADDR=192.168.1.1
and route-eth1 GATEWAY0=192.168.1.1 NETMASK0=255.255.255.0 ADDRESS0=192.168.1.0
I don't see why you set a device specific static route. Exactly that route is set automatically without any route-eth1 config file.
When I run ifup eth1 , follow messages show me.
ifup eth1 RTNETLINK answers: File exists
Because the interface is already up.
When I run command route -n , follow messages show me.
# route -n
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
But I don't know net 169.254.0.0.
http://www.google.com/search?hl=en&q=zeroconf+APIPA&btnG=Google+Sear...
Can be suppressed by NOZEROCONF=yes in /etc/sysconfig/network.
Adriano
Alexander