LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   2 networks, 2 gateways, routing help (https://www.linuxquestions.org/questions/linux-networking-3/2-networks-2-gateways-routing-help-446836/)

guitara 05-20-2006 06:37 PM

2 networks, 2 gateways, routing help
 
Can someone help me configure this setup? I have a dsl modem feeding directly into my pc, using DHCP. That is the eth1 interface you see below. Next, I have an internal network (eth0) with my pc and my (modded) xbox. The xbox doesn't need the internet connection, so I just run it to a WRT54G router, along with my pc from eth0, with no WAN connection going into the router. As of now, the internet works fine, but I get no ftp access into the xbox, or access to the router (192.168.1.1). I can ping my router ip. Also, my dsl modem is 192.168.0.1, as expected. I'm thinking this is a routing problem, but cannot seem to figure out how to make it work. Thanks!

route
Code:

Kernel IP routing table
Destination    Gateway        Genmask        Flags Metric Ref    Use Iface
192.168.1.0    *              255.255.255.0  U    0      0        0 vmnet1
192.168.1.0    *              255.255.255.0  U    0      0        0 vmnet8
192.168.1.0    *              255.255.255.0  U    0      0        0 eth0
xx.xxx.104.x    *              255.255.255.0  U    0      0        0 eth1
default        ppp-xx-xxx-104- 0.0.0.0        UG    0      0        0 eth1

ifconfig
Code:

eth0      Link encap:Ethernet  HWaddr 00:0C:6E:50:09:D4
          inet addr:192.168.1.102  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:6eff:fe50:9d4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:39 errors:0 dropped:0 overruns:0 frame:0
          TX packets:45 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2356 (2.3 KiB)  TX bytes:8754 (8.5 KiB)
          Interrupt:177 Base address:0xa000

eth1      Link encap:Ethernet  HWaddr 00:E0:4C:39:03:FE
          inet addr:xx.xxx.104.202  Bcast:xx.xxx.104.255  Mask:255.255.255.0
          inet6 addr: fe80::2e0:4cff:fe39:3fe/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1224 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1340 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:850003 (830.0 KiB)  TX bytes:265035 (258.8 KiB)
          Interrupt:217 Base address:0x2800

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:137 errors:0 dropped:0 overruns:0 frame:0
          TX packets:137 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:11278 (11.0 KiB)  TX bytes:11278 (11.0 KiB)

vmnet1    Link encap:Ethernet  HWaddr 00:50:56:C0:00:01
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::250:56ff:fec0:1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

vmnet8    Link encap:Ethernet  HWaddr 00:50:56:C0:00:08
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::250:56ff:fec0:8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)



All times are GMT -5. The time now is 12:31 AM.