[PVE-User] Multiple network interfaces
Dietmar Maurer
dietmar at proxmox.com
Fri May 22 13:47:35 CEST 2009
And what traffic is routed the wrong way?
> -----Original Message-----
> From: pve-user-bounces at pve.proxmox.com [mailto:pve-user-
> bounces at pve.proxmox.com] On Behalf Of Carlos Acedo
> Sent: Freitag, 22. Mai 2009 13:38
> To: pve-user at pve.proxmox.com
> Subject: Re: [PVE-User] Multiple network interfaces
>
> Here you are:
> # cat /etc/network/interfaces
> # network interface settings
> auto lo
> iface lo inet loopback
>
> iface eth0 inet manual
>
> iface eth1 inet manual
>
> auto eth2
> iface eth2 inet static
> address 10.0.10.2
> netmask 255.255.255.0
>
> auto eth3
> iface eth3 inet static
> address 10.10.0.2
> netmask 255.255.255.0
>
> iface eth4 inet manual
>
> iface eth5 inet manual
>
> auto vmbr0
> iface vmbr0 inet static
> address XXX.XXX.XXX.79
> netmask 255.255.255.0
> gateway XXX.XXX.XXX.7
> bridge_ports eth0
> bridge_stp off
> bridge_fd 0
>
> auto vmbr1
> iface vmbr1 inet static
> address 10.0.0.2
> netmask 255.255.255.0
> bridge_ports eth1
> bridge_stp off
> bridge_fd 0
>
>
> # ifconfig
> eth0 Link encap:Ethernet HWaddr 00:15:17:96:3A:8A
> inet6 addr: fe80::215:17ff:fe96:3a8a/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:136220495 errors:0 dropped:1263 overruns:0 frame:0
> TX packets:58742958 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:21642647051 (20.1 GiB) TX bytes:58803177745 (54.7
> GiB)
>
> eth1 Link encap:Ethernet HWaddr 00:15:17:96:3A:8B
> inet6 addr: fe80::215:17ff:fe96:3a8b/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:49832588 errors:0 dropped:120 overruns:0 frame:0
> TX packets:110467494 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:22187796694 (20.6 GiB) TX bytes:161090447423 (150.0
> GiB)
>
> eth2 Link encap:Ethernet HWaddr 00:15:17:96:3D:94
> inet addr:10.0.10.2 Bcast:10.0.10.255 Mask:255.255.255.0
> inet6 addr: fe80::215:17ff:fe96:3d94/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:4617361 errors:0 dropped:0 overruns:0 frame:0
> TX packets:8574285 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:593035726 (565.5 MiB) TX bytes:771940536 (736.1
> MiB)
>
> eth3 Link encap:Ethernet HWaddr 00:15:17:96:3D:95
> inet addr:10.10.0.2 Bcast:10.10.0.255 Mask:255.255.255.0
> inet6 addr: fe80::215:17ff:fe96:3d95/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:4617351 errors:0 dropped:0 overruns:0 frame:0
> TX packets:8574242 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:593078311 (565.6 MiB) TX bytes:771938434 (736.1
> MiB)
>
> 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:16436 Metric:1
> RX packets:4614756 errors:0 dropped:0 overruns:0 frame:0
> TX packets:4614756 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:1027962450 (980.3 MiB) TX bytes:1027962450 (980.3
> MiB)
>
> venet0 Link encap:UNSPEC HWaddr
> 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
> UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
> RX packets:43689641 errors:0 dropped:0 overruns:0 frame:0
> TX packets:37122146 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:50616539287 (47.1 GiB) TX bytes:14525972807 (13.5
> GiB)
>
> vmbr0 Link encap:Ethernet HWaddr 00:15:17:96:3A:8A
> inet addr:XXX.XXX.XXX.79 Bcast:XXX.XXX.XXX.255
> Mask:255.255.255.0
> inet6 addr: fe80::215:17ff:fe96:3a8a/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:134213050 errors:0 dropped:0 overruns:0 frame:0
> TX packets:56983362 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:18902711095 (17.6 GiB) TX bytes:58679698024 (54.6
> GiB)
>
> vmbr1 Link encap:Ethernet HWaddr 00:15:17:96:3A:8B
> inet addr:10.0.0.2 Bcast:10.0.0.255 Mask:255.255.255.0
> inet6 addr: fe80::215:17ff:fe96:3a8b/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:48164863 errors:0 dropped:0 overruns:0 frame:0
> TX packets:20354180 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:19911256652 (18.5 GiB) TX bytes:154782481769 (144.1
> GiB)
>
> # route
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use
> Iface
> XXX.XXX.XXX.85 * 255.255.255.255 UH 0 0
> 0
> venet0
> XXX.XXX.XXX.120 * 255.255.255.255 UH 0 0
> 0
> venet0
> XXX.XXX.XXX.121 * 255.255.255.255 UH 0 0
> 0
> venet0
> 10.0.0.0 * 255.255.255.0 U 0 0 0
> vmbr1
> XXX.XXX.XXX.0 * 255.255.255.0 U 0 0
> 0
> vmbr0
> 10.10.0.0 * 255.255.255.0 U 0 0 0
> eth3
> 10.0.10.0 * 255.255.255.0 U 0 0 0
> eth2
> default XXX.XXX.XXX.7 0.0.0.0 UG 0 0
> 0
> vmbr0
>
> # brctl show
> bridge name bridge id STP enabled interfaces
> vmbr0 8000.001517963a8a no eth0
> vmbr1 8000.001517963a8b no eth1
>
>
> And this is the ifconfig inside a pve:
>
> # ifconfig
> 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:16436 Metric:1
> RX packets:36381945 errors:0 dropped:0 overruns:0 frame:0
> TX packets:36381945 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:30470329442 (28.3 GiB) TX bytes:30470329442 (28.3
> GiB)
>
> venet0 Link encap:UNSPEC HWaddr
> 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
> inet addr:127.0.0.1 P-t-P:127.0.0.1 Bcast:0.0.0.0
> Mask:255.255.255.255
> UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
> RX packets:19460857 errors:0 dropped:0 overruns:0 frame:0
> TX packets:27132920 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:1736266599 (1.6 GiB) TX bytes:33697097421 (31.3
> GiB)
>
> venet0:0 Link encap:UNSPEC HWaddr
> 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
> inet addr:XXX.XXX.XXX.85 P-t-P:77.246.179.85 Bcast:0.0.0.0
> Mask:255.255.255.255
> UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
>
>
> I hope this helps.
>
>
> Dietmar Maurer escribió:
> > Please tell the whole story, i.e. what is the content of:
> >
> > /etc/network/interfaces
> >
> > - Dietmar
> >
> >
> >> -----Original Message-----
> >> From: pve-user-bounces at pve.proxmox.com [mailto:pve-user-
> >> bounces at pve.proxmox.com] On Behalf Of Carlos Acedo
> >> Sent: Freitag, 22. Mai 2009 13:10
> >> To: pve-user at pve.proxmox.com
> >> Subject: [PVE-User] Multiple network interfaces
> >>
> >> Hi,
> >>
> >> We are trying to setup Proxmox 1.2 to work with two (physical)
> network
> >> interfaces, one for public traffic and the other one for the lan.
> We
> >> have tried to enslave both nics in two different bridges, but
> traffic
> >> is
> >> routed always through one interface.
> >>
> >> How can I make pve's use different network interfaces for private
> and
> >> public ip's?
> >>
> >> Thank you in advance.
> >>
> >> Carlos.
> >> _______________________________________________
> >> pve-user mailing list
> >> pve-user at pve.proxmox.com
> >> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
> >>
> >
> >
> _______________________________________________
> pve-user mailing list
> pve-user at pve.proxmox.com
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
More information about the pve-user
mailing list