routes question

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

 



I've setup a gateway/router for a small internal network that we are
using to disinfect virus ridden windows machines. eth0 serves the ip's
to the internal network (192.168.1.1) and eth1 is connected to the
internet (130.111.68.110).

This works very well, except when I start the machine with the eth0
network cable unplugged and then plug it back in after the machine has
started. When this happens, people are still able to get an ip but are
not able to get out on the internet. If I go on the server and try to
ping something, it doesn't work, it's trying to use eth0 to ping and
is getting a host unreachable. A restart with the cable plugged in
seems to fix it.

I'm thinking this has to do with setting routes. Though I'm not sure
what routes are appropriate to set. Should eth0's route be
130.111.68.1? Does this sound like a route problem?

Here is the output of the routes command:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     *               255.255.255.0   U     0      0        0 eth0
130.111.68.0    *               255.255.254.0   U     0      0        0 eth1
169.254.0.0     *               255.255.0.0     U     0      0        0 eth1


Here are the contents from my ifcfg-ethx scripts:
#eth0:
# Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.1.1
NETMASK=255.255.255.0
GATEWAY=192.168.1.254
HWADDR=00:30:BD:05:65:DF


#eth1
DEVICE=eth1
BOOTPROTO=static
IPADDR=130.111.68.110
NETMASK=255.255.254.0
GATEWAY=130.111.68.1
HWADDR=00:C0:A8:F1:EF:39
ONBOOT=yes
TYPE=Ethernet


and here is my ifconfig:

eth0      Link encap:Ethernet  HWaddr 00:30:BD:05:65:DF
         inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
         inet6 addr: fe80::230:bdff:fe05:65df/64 Scope:Link
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:259 errors:0 dropped:0 overruns:0 frame:0
         TX packets:353 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:28915 (28.2 KiB)  TX bytes:222329 (217.1 KiB)
         Interrupt:11 Base address:0xc400

eth1      Link encap:Ethernet  HWaddr 00:C0:A8:F1:EF:39
         inet addr:130.111.68.110  Bcast:130.111.69.255  Mask:255.255.254.0
         inet6 addr: fe80::2c0:a8ff:fef1:ef39/64 Scope:Link
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:238459 errors:0 dropped:0 overruns:0 frame:0
         TX packets:2361 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:19817771 (18.8 MiB)  TX bytes:234701 (229.2 KiB)

lo        Link encap:Local Loopback
         inet addr:127.0.0.1  Mask:255.0.0.0
         inet6 addr: ::1/128 Scope:Host
         UP LOOPBACK RUNNING  MTU:16436  Metric:1
         RX packets:27 errors:0 dropped:0 overruns:0 frame:0
         TX packets:27 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:12146 (11.8 KiB)  TX bytes:12146 (11.8 KiB)




Thanks for anyone giving me some hints.

Romeo

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux