How to connect two networks
I have an ubuntu pc with two network cards:
$ sudo ifconfig
eth0 Link encap:Ethernet HWaddr 00:E0:4C:CB:70:2B
inet addr:10.152.58.5 Bcast:10.152.58.255 Mask:255.255.255.0
inet6 addr: fe80::2e0:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:49755 errors:0 dropped:0 overruns:0 frame:0
TX packets:45318 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:15731814 (15.0 MiB) TX bytes:9110042 (8.6 MiB)
eth1 Link encap:Ethernet HWaddr 00:08:A1:A0:63:1C
inet addr:10.0.2.1 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::208:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:53059 errors:0 dropped:0 overruns:0 frame:0
TX packets:34079 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:9587381 (9.1 MiB) TX bytes:8698924 (8.2 MiB)
lo .............
I want to connect the 2 networks, i.e. I want to see the network 10.0.2.0/24 from 10.152.58.0/24.
In the net 10.0.2.0/24 I have various Analog VoIP Adapter (linksys pap2-na and spa-3102-na). I want to connect to their web configuration interface, and I want to access them with the sip protocol, both things from the other net.
I established a route:
$ sudo route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.2.0 * 255.255.255.0 U 0 0 0 eth1
localnet * 255.255.255.0 U 0 0 0 eth0
link-local * 255.255.0.0 U 1000 0 0 eth1
default router 0.0.0.0 UG 0 0 0 eth0
(router is the cisco router that connects me to the internet), but unfortunatly things doesn't work: I can't ping 10.0.2.12 from 10.152.58.10.
How can I do it? thank you!
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Paolo Benvenuto for more information if necessary.