routes question

Romeo Theriault romeotheriault at gmail.com
Wed Jun 14 18:21:12 UTC 2006


I haven't had much time at all to test it, but from the few minutes
that I've played around with it , it seems to work after I set the
default gateway. With:

route add default gw 130.111.68.1

Even after reboots, with the cable unplugged. Next week when I get
more time to test it, I'll look at it further and test both of your
suggestions and let you know what I find.

Thank you for your suggestions.

Romeo

On 6/14/06, nilesh vaghela <nileshj.vaghela at gmail.com> wrote:
> try to give gateway at /etc/sysconfig/network
>
> GATEWAY=XX.XX.XX.XX
>  remove it from both the nic.
>
> then restrt the network services.
>
> #service network restart.
>
> then check route -n
>
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
> 220.226.132.128 0.0.0.0         255.255.255.128 U     0      0        0 eth1
> 192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
> 169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth0
> 0.0.0.0         220.226.132.129 0.0.0.0         UG    0      0        0 eth1
>
> Some thing like last line should be apear.
>
> Hope this will help you.
>
> On 6/13/06, Romeo Theriault <romeotheriault at gmail.com> wrote:
> >
> > 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 at redhat.com?subject=unsubscribe
> > https://www.redhat.com/mailman/listinfo/redhat-list
> >
>
>
>
> --
> Nilesh Vaghela
> ElectroMech
> Redhat Channel Partner and Training Partner
> 74, Nalanda Complex, Satellite Rd, Ahmedabad
> 25, The Emperor, Fatehgunj, Baroda.
> www.electromech.info
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>




More information about the redhat-list mailing list