1 VPS IP, Multiple Host Interfaces [message #12418] |
Fri, 27 April 2007 13:03 |
cberic3
Messages: 8 Registered: March 2007
|
Junior Member |
|
|
I have tried just about every ip route combination I can think of to make this work.
I have a host with 3 interfaces:
2 separate public interfaces on different networks; with both networks' gateways able to route to each other.
1 private network (192.168.100.0/24).
The VPS in question has an IP address on only 1 of the two hosts' public networks. The default gateway for either network should work, but for some reason, the VPS cannot send data to the public network that it doesn't have an IP address for. If I ifdown the interface on network in question on the host, the VPS can immediately send packets to the network in question.
The weird thing is, it magically starts working at some point in the day, but stops by the time I get to work in the morning. This happens if the routing table is left at the defaults when the VPS is created.
**A couple more stats:
iptables is off on the host and VE
the VE is being given a real routable IP address (no private).
-Eric
[Updated on: Fri, 27 April 2007 13:36] Report message to a moderator
|
|
|
|
Re: 1 VPS IP, Multiple Host Interfaces [message #12452 is a reply to message #12439] |
Sat, 28 April 2007 14:36 |
cberic3
Messages: 8 Registered: March 2007
|
Junior Member |
|
|
INSIDE VE=
root@wiki:/root>ip a l
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
3: venet0: <BROADCAST,POINTOPOINT,NOARP,UP> mtu 1500 qdisc noqueue
link/void
inet 127.0.0.1/32 scope host venet0
inet 198.175.18.60/32 brd 198.175.18.60 scope global venet0:0
root@wiki:/root>ip r l
192.0.2.0/24 dev venet0 scope host
169.254.0.0/16 dev venet0 scope link
default via 192.0.2.1 dev venet0 src 198.175.18.60
root@wiki:/root>
ON HW NODE=
root@openvz1:/root>ip a l
2: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
4: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:0b:cd:4f:5c:15 brd ff:ff:ff:ff:ff:ff
inet 198.175.18.64/24 brd 198.175.18.255 scope global eth0
6: eth1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:0b:cd:4f:5d:4a brd ff:ff:ff:ff:ff:ff
inet 198.175.28.56/26 brd 198.175.28.255 scope global eth1
8: eth2: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:0f:b5:46:9f:f3 brd ff:ff:ff:ff:ff:ff
inet 192.168.100.64/24 brd 192.168.100.255 scope global eth2
1: venet0: <BROADCAST,POINTOPOINT,NOARP,UP> mtu 1500 qdisc noqueue
link/void
root@openvz1:/root>ip r l
198.175.18.60 dev venet0 scope link
198.175.28.0/26 dev eth1 proto kernel scope link src 198.175.28.56
192.168.100.0/24 dev eth2 proto kernel scope link src 192.168.100.64
198.175.18.0/24 dev eth0 proto kernel scope link src 198.175.18.64
169.254.0.0/16 dev eth1 scope link
default via 198.175.18.1 dev eth0
root@openvz1:/root>
|
|
|
|
|
|
|
|