How can two subnets be connected?
I can not ping or traceroute between these subnets.
Vbox1 subnet ifconfig:
eth0 Link encap:Ethernet HWaddr 08:00:27:f1:68:9e
inet addr:192.168.1.65 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fef1:689e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:207703 errors:0 dropped:0 overruns:0 frame:0
TX packets:41701 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:45480669 (45.4 MB) TX bytes:4855362 (4.8 MB)
eth1 Link encap:Ethernet HWaddr 08:00:27:79:02:34
inet addr:10.0.3.15 Bcast:10.0.3.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe79:234/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:913 errors:0 dropped:0 overruns:0 frame:0
TX packets:1335 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:129887 (129.8 KB) TX bytes:150700 (150.7 KB)
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:65536 Metric:1
RX packets:15106 errors:0 dropped:0 overruns:0 frame:0
TX packets:15106 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:949613 (949.6 KB) TX bytes:949613 (949.6 KB)
And p4 (because I do not have access to that machine from here, I give a manual-typed summary):
etho : only inet6 addr
lo : inet addr : 127.0.0.1 Mask : 255.0.0.0
venet0 : only inet6 addr
vmbr0 : inet addr : 192.168.0.70 BCast : 192.168.0.255 Mask : 255.255.255.0
Two subnets were connected successful. After switching of ISP I can not access the p4 subnet anymore. So something has changed, but I expect it should be a minor problem, because before using subnets it was working successful.
I have read Virtual machine in two subnets, but the suggestion is to use VLAN. But according to Best way to segment traffic, VLAN or subnet? VLAN works on network layer 2, and subnet on network layer 3. And layer 3, subnets, should be used.
So I should have a gateway between these subnets.
According to Ubuntu KB - Network Config I added to vbox1:
sudo route add default gw 10.10.14.81 eth1
But it generates:
SIOCADDRT: Network is unreachable
Searching returns Ubuntu tunnel or gateway a difference between a host address and a network address.
For your information, vbox1 is Ubuntu 13.04 (Raring Ringtail) and p4 is Debian 7.5 (Wheezy).
I am stuck now.
ip n
, next try to ping link-local adress (e.g. then one who start withfe80::
)