*SOLVED* multiples interfaces ? [message #5853] |
Fri, 01 September 2006 14:21 |
|
pollux
Messages: 13 Registered: September 2006
|
Junior Member |
|
|
I have a host system with 2 interfaces, one with a public address (eth0) and a private address (eth1)
I have added 2 ip addresses using vzctl to the VPS, one in each network:
vzctl set 108 --ipadd 134.214.51.158 --save
vzctl set 108 --ipadd 10.0.0.108 --save
Seems ok, but from the VPS I am unable to access hosts in the private network:
webmail:~# ping 10.0.0.12
PING 10.0.0.12 (10.0.0.12) 56(84) bytes of data.
--- 10.0.0.12 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 999ms
The same ping from the host works. The routing table from host seems ok:
vz:~# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
10.0.0.108 0.0.0.0 255.255.255.255 UH 0 0 0 venet0
134.214.51.157 0.0.0.0 255.255.255.255 UH 0 0 0 venet0
134.214.51.158 0.0.0.0 255.255.255.255 UH 0 0 0 venet0
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
134.214.50.0 0.0.0.0 255.255.254.0 U 0 0 0 eth0
0.0.0.0 134.214.50.1 0.0.0.0 UG 0 0 0 eth0
Does someone else have this problem ? Or do I miss any configuration ?
Thanks
[Updated on: Fri, 08 September 2006 06:43] by Moderator Report message to a moderator
|
|
|
|
Re: multiples interfaces ? [message #5859 is a reply to message #5857] |
Fri, 01 September 2006 15:42 |
|
pollux
Messages: 13 Registered: September 2006
|
Junior Member |
|
|
Here you are:
host# tcpdump -i eth1 -n host 10.0.0.12
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth1, link-type EN10MB (Ethernet), capture size 96 bytes
17:37:19.184178 IP 134.214.51.158 > 10.0.0.12: ICMP echo request, id 53255, seq 1, length 64
17:37:20.184319 IP 134.214.51.158 > 10.0.0.12: ICMP echo request, id 53255, seq 2, length 64
17:37:21.184164 IP 134.214.51.158 > 10.0.0.12: ICMP echo request, id 53255, seq 3, length 64
3 packets captured
6 packets received by filter
0 packets dropped by kernel
Note that the source address is clearly wrong (should have been 10.0.0.108)
host# tcpdump -i venet0 -n host 10.0.0.12
tcpdump: WARNING: arptype 65535 not supported by libpcap - falling back to cooked socket
tcpdump: WARNING: venet0: no IPv4 address assigned
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on venet0, link-type LINUX_SLL (Linux cooked), capture size 96 bytes
17:38:23.179430 IP 134.214.51.158 > 10.0.0.12: ICMP echo request, id 53255, seq 65, length 64
17:38:24.179289 IP 134.214.51.158 > 10.0.0.12: ICMP echo request, id 53255, seq 66, length 64
17:38:25.179117 IP 134.214.51.158 > 10.0.0.12: ICMP echo request, id 53255, seq 67, length 64
17:38:26.179034 IP 134.214.51.158 > 10.0.0.12: ICMP echo request, id 53255, seq 68, length 64
4 packets captured
8 packets received by filter
0 packets dropped by kernel
Same comment.
And finally:
vps# ping 10.0.0.12 -I 10.0.0.108
PING 10.0.0.12 (10.0.0.12) from 10.0.0.108 : 56(84) bytes of data.
64 bytes from 10.0.0.12: icmp_seq=1 ttl=63 time=0.102 ms
64 bytes from 10.0.0.12: icmp_seq=2 ttl=63 time=0.099 ms
So it's working when specifying the source address. Is there any way to make this working without arguments ? (maybe using source routing ?)
Thanks for your help
|
|
|
|
|
|
|
|
|