When I recently did the same thing, I had to add a 'default' gateway to
the routing table. (the man page for routed has an example).  Don't know
if this was the best way, but it worked.

Nic


Matthew Saltzman wrote:
> 
> Hi-
> 
> I recently got DSL service at home, and I am trying to reconfigure my
> home network to handle everything.  This all used to work when I had
> PPP instead of DSL.
> 
> The network consists of a Linux box (RH6.2 with updates) that handles
> network services among other tasks, a Win95 box, and a laptop that
> dual-boots RH6.2 and Win2000.  Now I also have a hardware gateway for
> DSL.  All of this is connected to a central Ethernet hub.
> The Linux box has a single Ethernet card over which I want to run
> interfaces to the local net and the DSL net.  So the local net will
> run over eth0 and the DSL net over eth0:0.
> 
> The DSL connection includes a small network with address
> xxx.xxx.xxx.xx2, a static IP address for the gateway (xxx.xxx.xxx.xx4)
> and one for the Linux box (xxx.xxx.xxx.xx3).  The local net address is
> 192.168.10.0.
> 
> /etc/sysconfig/network:
> 
> NETWORKING=yes
> FORWARD_IPV4=yes
> HOSTNAME=yankee
> DOMAINNAME=localdomain
> GATEWAY=xxx.xxx.xxx.xx4
> GATEWAYDEV=eth0:0
> 
> /etc/sysconfig/network-scripts/ifcfg-eth0:
> 
> DEVICE=eth0
> BOOTPROTO=static
> IPADDR=192.168.10.1
> NETMASK=255.255.255.0
> GATEWAY=xxx.xxx.xxx.xx4
> HOSTNAME=yankee
> DOMAIN=localdomain
> 
> /etc/sysconfig/network-scripts/ifcfg-eth0:0:
> 
> DEVICE=eth0:0
> BOOTPROTO=static
> IPADDR=xxx.xxx.xxx.xx3
> NETMASK=255.255.255.xx2 (appropriate netmask for a two-address subnet)
> GATEWAY=xxx.xxx.xxx.xx4
> HOSTNAME=dsl-xxx-xxx-xxx-xx3.dslprovider.com
> DOMAIN=dslprovider.com
> 
> The linux box appears to function correctly.  ifconfig reports:
> 
> eth0      Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx
>           inet addr:192.168.10.1  Bcast:192.168.10.255
>           Mask:255.255.255.0
>           UP BROADCAST RUNNING  MTU:1500  Metric:1
>           RX packets:147908 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:111053 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:24 txqueuelen:100
>           Interrupt:9 Base address:0xe800
> 
> eth0:0    Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx
>           inet addr:xxx.xxx.xxx.xx3  Bcast:xxx.xxx.xxx.xx5
>           Mask:255.255.255.252
>           UP BROADCAST RUNNING  MTU:1500  Metric:1
>           Interrupt:9 Base address:0xe800
> 
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           UP LOOPBACK RUNNING  MTU:3924  Metric:1
>           RX packets:23111 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:23111 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
> 
> route -n reports:
> 
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref Use Iface
> 192.168.10.1    0.0.0.0         255.255.255.255 UH    0      0     0 eth0
> xxx.xxx.xxx.xx2 0.0.0.0         255.255.255.xx2 U     0      0     0 eth0
> 192.168.10.0    0.0.0.0         255.255.255.0   U     0      0     0 eth0
> 127.0.0.0       0.0.0.0         255.0.0.0       U     0      0     0 lo
> 0.0.0.0         xxx.xxx.xxx.xx4 0.0.0.0         UG    1      0     0 eth0
> 
> I can reach internal machines (when they work--see below) and external
> sites with no problem.
> 
> The masquerade configuration in /etc/rc.d/rc.local is
> 
> /sbin/modprobe ip_masq_ftp
> /sbin/ipchains -P forward DENY
> /sbin/ipchains -A forward -j MASQ -s 192.168.10.0/24 -d 0.0.0.0/0
> 
> My laptop in Linux mode correctly DHCP's and can see machines on the
> internal net, but can't see out.  The first attempt to ping produces
> the following:
> 
> PING <external-ip-address> from 192.168.10.106 : 56(84) bytes of data.
> >From yankee (192.168.10.1): Redirect Host(New nexthop: 
>dsl-xxx-xxx-xxx-xx4.dslprovider.com (xxx.xxx.xxx.xx4).
> 
> One packet is received and the rest are dropped.  Subsequent pings
> just hang.
> 
> The routing table on the laptop is:
> 
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref Use Iface
> 192.168.10.0    0.0.0.0         255.255.255.0   U     0      0     0 eth0
> 127.0.0.0       0.0.0.0         255.0.0.0       U     0      0     0 lo
> 0.0.0.0         192.168.10.1    0.0.0.0         UG    0      0     0 eth0
> 
> This machine is perfectly functional on other networks I have tried.
> 
> /etc/dhcpd.conf on 192.168.10.1 contains:
> 
> server-identifier yankee;
> option domain-name      "localdomain";
> option routers  192.168.10.1;
> option subnet-mask      255.255.255.0;
> subnet 192.168.10.0 netmask 255.255.255.0{
>         range  192.168.10.100 192.168.10.110;
>         option domain-name              "localdomain";
>         option routers          192.168.10.1;
> }
> 
> The Win95 machine and the laptop in Win2000 mode both fail to DHCP.
> Log entries look like:
> 
> Oct 20 11:42:36 yankee dhcpd: DHCPDISCOVER from xx:xx:xx:xx:xx:xx via eth0
> Oct 20 11:42:37 yankee dhcpd: DHCPOFFER on 192.168.10.106 to xx:xx:xx:xx:xx:xx via 
>eth0
> Oct 20 11:42:37 yankee dhcpd: DHCPREQUEST for 192.168.10.106 from xx:xx:xx:xx:xx via 
>eth0
> Oct 20 11:42:37 yankee dhcpd: DHCPACK on 192.168.10.106 to xx:xx:xx:xx:xx via eth0
> 
> repeated endlessly for Win2000 or once for Win95 (at which point Win95
> reports the failure and gives up).
> 
> Any advice would be greatly appreciated.  If I need to provide any
> other logs, let me know.  Thanks.
> 
>                 Matthew Saltzman
>                 Clemson University Math Sciences
>                 [EMAIL PROTECTED]
>                 http://www.math.clemson.edu/~mjs
> 
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to