OpenVZ Forum


Home » General » Support » Dual veth interfaces
Re: Dual veth interfaces [message #4622 is a reply to message #4613] Tue, 18 July 2006 17:43 Go to previous messageGo to previous message
foxxfiles is currently offline  foxxfiles
Messages: 12
Registered: July 2006
Junior Member
Hi.

The logic is this you say. but i dont know where i am fail.

look.

host-node# ifconfig veth101.0 0
host-node# ifconfig veth101.1 0
host-node# echo 1 > /proc/sys/net/ipv4/conf/veth101.0/forwarding
host-node# echo 1 > /proc/sys/net/ipv4/conf/veth101.0/proxy_arp
host-node# echo 1 > /proc/sys/net/ipv4/conf/veth101.1/forwarding
host-node# echo 1 > /proc/sys/net/ipv4/conf/veth101.1/proxy_arp
host-node# echo 1 > /proc/sys/net/ipv4/conf/eth0/forwarding
host-node# echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp
host-node# echo 1 > /proc/sys/net/ipv4/conf/eth1/forwarding
host-node# echo 1 > /proc/sys/net/ipv4/conf/eth1/proxy_arp

test-vps# /sbin/ifconfig eth0 0
test-vps# /sbin/ifconfig eth1 0
test-vps# /sbin/ip addr add 200.25.96.2 dev eth0
test-vps# /sbin/ip addr add 192.168.156.252 dev eth1
test-vps# /sbin/ip ro add 192.168.156.0/24 dev eth1
test-vps# /sbin/ip route add default dev eth0

host-node# /sbin/ip route add 192.168.156.252 dev veth101.1
host-node# /sbin/ip route add 200.25.96.2 dev veth101.0




After This on other host 2 interfaces with communication on 2 Networks.

fox@otherhost:~$ ping 192.168.156.252
PING 192.168.156.252 (192.168.156.252) 56(84) bytes of data.
From 192.168.156.5 icmp_seq=2 Destination Host Unreachable
From 192.168.156.5 icmp_seq=3 Destination Host Unreachable
From 192.168.156.5 icmp_seq=4 Destination Host Unreachable

--- 192.168.156.252 ping statistics ---
6 packets transmitted, 0 received, +3 errors, 100% packet loss, time 5010ms
, pipe 3



fox@otherhost:~$ ping 200.25.96.2
PING 200.25.96.2 (200.25.96.2) 56(84) bytes of data.
64 bytes from 200.25.96.2: icmp_seq=1 ttl=64 time=0.045 ms
64 bytes from 200.25.96.2: icmp_seq=2 ttl=64 time=0.035 ms

--- 2200.25.96.2 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 0.035/0.040/0.045/0.005 ms

Only work the interface with the default gw on VPS.
Iam omit some step?
Howto make Work this.

Fernando
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: *SOLVED* Networking Issue
Next Topic: VE "route" command shows 191.255.255.1
Goto Forum:
  


Current Time: Mon Aug 19 17:18:43 GMT 2024

Total time taken to generate the page: 0.03286 seconds