[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] Nat for ipv4 & bridge for Ipv6 - Configuration?



Hi, i use Xen 4.4 on Debian 8, i wonder how i can create a NAT for Ipv4 since i have one IPv4 ip & bridge for Ipv6 since i have plenty of them.
On my dom0, i d like private Ipv4 ips & public Ipv6 ips. Thank you. 

Please find below my configuration files that does not work for sure. Notice the ipv6 ips here are all private ones for testing. 


DomU /etc/network/interfaces

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 8.8.8.8

iface eth0 inet6 static
address fdde::cafe:0:2
netmask 96
gateway fdde::cafe:0:1

auto xenbr0
iface xenbr0 inet static
address 192.168.0.1
netmask 255.255.255.0
pre-up  brctl addbr xenbr0
pre-up ip -6 addr add fdde::cafe:0:3/96 dev xenbr0
pre-up ip -6 route add default via fdde::cafe:0:1
bridge_ports eth0

/etc/sysctl.conf
net.ipv4.ip_forward=1

iptables:
masquerade in place for Ipv4.


Dom0

auto eth0
iface eth0 inet static
address 192.168.0.2
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 8.8.8.8

iface eth0 inet6 static
address fdde::cafe:0:4
netmask 96
gateway fdde::cafe:0:1
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.