Hi,
I'm trying to add a new subnet to my network and enable internet sharing for that subnet.
I read a lot of guides and now it works halfway. I can send packets to the outside world, but I cannot receive anything back because my subnet isn't known in my primary router.
I think it has something to do with nat. But I haven't been able to find the correct guide to enable it.
My network topology:
Code:
++++++++++++++++++
+ internet cloud +
++++++++++++++++++
|
|------------------------- 83.14.15.0/?
|
++++++++++++++++++++++++++++++
+ Speedtouch modem/router +
+ dhcp-server = on +
+ ip1 = 83.14.15.16 +
+ ip2 = 10.0.0.138 +
+ ip2mac = 00:90:d0:1c:xx:1b +
++++++++++++++++++++++++++++++
|
|
-------------------------------------- 10.0.0.0/24
| |
| |
| |
+++++++++++++++++ ++++++++++++++++++++++++++++++++
+ pc 1 + + linux pc 2 +
+ ip = 10.0.0.2 + + ipforwarding = on +
+++++++++++++++++ + dhcp3-server = on +
+ dnsmasq = on +
+ eth1 = 10.0.0.7 +
+ eth0 = 192.168.0.1 +
+ eth1_mac = 00:02:1e:f1:xx:51 +
+ eth0_mac = 00:48:54:7A:xx:70 +
++++++++++++++++++++++++++++++++
|
|
-------------- 192.168.0.0/24
|
|
|
++++++++++++++++++++++++++++++
+ pc3 +
+ ip = 192.168.0.5 +
+ ip_mac = 00:C0:9F:0E:xx:84 +
++++++++++++++++++++++++++++++
It seems that dns is working, but I think that's because I installed dnsmasq on the linux pc.
Now why ping doesn't work:
Quote:
trace on eth0:
Ethernet II, Src: QuantaCo_0e:xx:84 (00:c0:9f:0e:xx:84), Dst: DigitalS_7a:xx:70 (00:48:54:7a:xx:70)
Internet Protocol, Src: 192.168.0.5 (192.168.0.5), Dst: 192.168.0.1 (192.168.0.1)
trace on eth1:
Ethernet II, Src: SimtelSR_f1:xx:51 (00:02:1e:f1:xx:51), Dst: ThomsonT_1c:xx:1b (00:90:d0:1c:xx:1b)
Internet Protocol, Src: 192.168.0.5 (192.168.0.5), Dst: 216.239.59.104 (216.239.59.104)
|
You can see that the ip address 192.168.0.5 is being used towards the primary router. When the primary router wants to respond, I think it causes an address unreachable because 192.168.0.5 is not in the subnet 10.0.0.0/24.
If I do a ping from my linux pc:
Quote:
Ethernet II, Src: SimtelSR_f1:xx:51 (00:02:1e:f1:xx:51), Dst: ThomsonT_1c:xx:1b (00:90:d0:1c:xx:1b)
Internet Protocol, Src: 10.0.0.7 (10.0.0.7), Dst: 216.239.59.104 (216.239.59.104)
|
I get the following reply:
Quote:
Ethernet II, Src: ThomsonT_1c:xx:1b (00:90:d0:1c:xx:1b), Dst: SimtelSR_f1:xx:51 (00:02:1e:f1:xx:51)
Internet Protocol, Src: 216.239.59.104 (216.239.59.104), Dst: 10.0.0.7 (10.0.0.7)
|
I'm not able to add routing tables on my speedtouch router.