[Wylug-help] system-config-network, DHCP and routes
Jim Jackson
jj at franjam.org.uk
Thu Apr 23 11:20:45 UTC 2009
On Wed, 22 Apr 2009, Gary Stainburn wrote:
> Hi folks.
>
> My network has an FC9 box working as a gateway, with the network being
> configured using system-config-network.
>
> As well as the LAN (eth0) I've got 2xADSL connections,
>
> one for normal internet traffic
> eth1
> static IP 192.168.1.1
> default gw 192.168.1.254
>
> one for a VPN
> eth2
> DHCP 91.85.127.194
> DHCP allocated gateway 212.104.130.193
>
> The problem is that when eth2 comes up, it overrides the 192.168.1.254 route
> and all traffic goes down that link.
>
> If I remove the DHCP and try adding the details statically, everything works
> except the final route to the remote end of the VPN.
The dhcp server is supplying a new default route, and the dhcp client is
implementing it. Either re-configure the dhcp server to supply no default
route, or use static.
>
> Below is the route table when used in DHCP mode, including changing the
> default route.
>
> [root at groucho ~]# route -n
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use Iface
> 212.104.130.193 0.0.0.0 255.255.255.255 UH 0 0 0 eth2
> 77.86.27.0 212.104.130.193 255.255.255.192 UG 0 0 0 eth2
> 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
> 10.6.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
> 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth2
> 91.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth2
> 0.0.0.0 212.104.130.193 0.0.0.0 UG 0 0 0 eth2
> [root at groucho ~]# route del default
> [root at groucho ~]# route add default gw 192.168.1.254
> [root at groucho ~]#
>
>
> However, when I try to do this with static details the route to 77.86.27.0
> does not get set up, and if I try to set it up manually using:
>
> route add -net 77.86.27.0/26 gw 212.104.130.193
>
> It says that the process does not exist. Can anyone tell me what I'm doing
> wrong.
>
> Pinging 212.104.130.193 does work.
> --
> Gary Stainburn
>
> This email does not contain private or confidential material as it
> may be snooped on by interested government parties for unknown
> and undisclosed purposes - Regulation of Investigatory Powers Act, 2000
>
> _______________________________________________
> Wylug-help mailing list
> Wylug-help at wylug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/wylug-help
>
More information about the Wylug-help
mailing list