network ip config question

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

 



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

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux