Re: network ip config question [solved]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



michiel wrote:
Hello,

I just upgrade fc4 -> fc6 with fc6 unity respin and it worked like a charm! But I got trouble setting up my network.
My setup is (should be):

local network:
eth0      Link encap:Ethernet  HWaddr 00:0E:2E:54:9B:D6
          inet addr:192.168.0.12  Bcast:192.168.0.255  Mask:255.255.255.0

adsl modem conn:
eth1      Link encap:Ethernet  HWaddr 00:02:44:27:BC:7E
          inet addr:213.10.28.64  Bcast:213.10.28.64  Mask:255.255.255.255

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface 10.0.0.138 213.10.28.64 255.255.255.255 UGH 0 0 0 eth1 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 10.0.0.138 0.0.0.0 UG 0 0 0 eth1

eth1 is a connected to a adsl modem where eth1 gets my public ip address. The adsl gateway address (in the modem) is 10.0.0.138. eth1 is nat router for my local lan (192.168.0.0). Works like a charm but I can't get it work with
initscripts (/etc/sysconfig/netwoking). It did work with fc4 initscripts.

bringing it up by hand:

ifconfig eth0 192.168.0.12 ..
ifconfig eth1 213.10.28.64 ..

route add 192...
route add 10.0.0.138/0 gw 213.10.28.64
route add default gw 10.0.0.138

works ok.

These are my not working initscripts:

ifcfg-eth0:
ONBOOT=yes
USERCTL=no
PEERDNS=no
TYPE=Ethernet
DEVICE=eth0
BOOTPROTO=none
NETMASK=255.255.255.0
IPADDR=192.168.0.12
HWADDR=00:0e:2e:54:9b:d6

ifcfg-eth1:
IPV6INIT=no
ONBOOT=yes
USERCTL=no
PEERDNS=no
TYPE=Ethernet
DEVICE=eth1
BOOTPROTO=none
NETMASK=255.255.255.255
IPADDR=213.10.28.64
GATEWAY=10.0.0.138
#GATEWAYDEV=eth1
HWADDR=00:02:44:27:bc:7e


route-eth1:
GATEWAY0=10.0.0.138
NETMASK0=255.255.255.255
ADDRESS0=10.0.0.138

a network restart gives:


Bringing up loopback interface:                            [  OK  ]
Bringing up interface eth0:                                [  OK  ]
Bringing up interface eth1:  RTNETLINK answers: Network is unreachable
                                                           [  OK  ]
[root@brown ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.0 * 255.255.255.0 U 0 0 0 eth0


The (different) fc4 script is:

route-eth1:
10.0.0.138 dev eth1
default via 10.0.0.138



Anybody who can shine a light on this?

thnx,
Michiel


Formulating the problem is solving it! Replace fc6 route-eth1 by fc4 route-eth1 script did the job. Don't know why, don't know when. I prob. was a lot more intelligent in the fc4 time:)

M


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux