Hello to all, i need help configuring a network virtual pc.
All PCs have debian SO.
I must connect a phisical PC with two virtuals pc to a switch. The switch have two vlan networks. in total there are three
nets (192.168.1.0,192.168.4.0,192.168.101.0)
The guess pcs must be like another pc conneted to the swith that are connecte to the three networks.
I have do a bridge called br0 in the eth0 of the host PC with ip address 192.168.1.10
In the guess01 PC i have configured eth0 with ip address 192.168.1.11 , and two vlans: eth0.4 with 192.168.4.11 and eth0.101
with 192.168.101.11, the guess02 is like guess01 but using 12 instead of 11.
The case is that those pcs can acces to the network 192.168.1.0 but can not access to the networks 192.168.4.0 and
192.168.101.0.
the etc/network/intefaces are the nexts
*******
hostPC
*******
auto br0
iface br0 inet static
address 192.168.1.10
netmask 255.255.255.0
broadcast 192.168.1.255
network 192.168.1.0
gateway 192.168.1.1
bridge_ports eth0
bridge_fd 9
bridge_hello 2
bridge_maxage 12
bridge_stp off
*******
guess01PC
*******
auto eth0
iface eth0 inet static
address 192.168.1.11
netmask 255.255.255.0
broadcast 192.168.1.255
network 192.168.1.0
gateway 192.168.1.1
auto eth0.4
iface eth0 inet static
address 192.168.4.11
netmask 255.255.255.0
broadcast 192.4.1.255
network 192.168.4.0
gateway 192.168.4.1
auto eth0.101
iface eth0 inet static
address 192.168.101.11
netmask 255.255.255.0
broadcast 192.168.101.255
network 192.168.101.0
gateway 192.168.101.1
*******
guess02PC
*******
auto eth0
iface eth0 inet static
address 192.168.1.12
netmask 255.255.255.0
broadcast 192.168.1.255
network 192.168.1.0
gateway 192.168.1.1
auto eth0.4
iface eth0 inet static
address 192.168.4.12
netmask 255.255.255.0
broadcast 192.4.1.255
network 192.168.4.0
gateway 192.168.4.1
auto eth0.101
iface eth0 inet static
address 192.168.101.12
netmask 255.255.255.0
broadcast 192.168.101.255
network 192.168.101.0
gateway 192.168.101.1
Anybody know how to do for that the guess PCs can i access to the another 2 vlan networks?
In the guess PC i have installed vlan program.
All PCs have debian SO.
I must connect a phisical PC with two virtuals pc to a switch. The switch have two vlan networks. in total there are three
nets (192.168.1.0,192.168.4.0,192.168.101.0)
The guess pcs must be like another pc conneted to the swith that are connecte to the three networks.
I have do a bridge called br0 in the eth0 of the host PC with ip address 192.168.1.10
In the guess01 PC i have configured eth0 with ip address 192.168.1.11 , and two vlans: eth0.4 with 192.168.4.11 and eth0.101
with 192.168.101.11, the guess02 is like guess01 but using 12 instead of 11.
The case is that those pcs can acces to the network 192.168.1.0 but can not access to the networks 192.168.4.0 and
192.168.101.0.
the etc/network/intefaces are the nexts
*******
hostPC
*******
auto br0
iface br0 inet static
address 192.168.1.10
netmask 255.255.255.0
broadcast 192.168.1.255
network 192.168.1.0
gateway 192.168.1.1
bridge_ports eth0
bridge_fd 9
bridge_hello 2
bridge_maxage 12
bridge_stp off
*******
guess01PC
*******
auto eth0
iface eth0 inet static
address 192.168.1.11
netmask 255.255.255.0
broadcast 192.168.1.255
network 192.168.1.0
gateway 192.168.1.1
auto eth0.4
iface eth0 inet static
address 192.168.4.11
netmask 255.255.255.0
broadcast 192.4.1.255
network 192.168.4.0
gateway 192.168.4.1
auto eth0.101
iface eth0 inet static
address 192.168.101.11
netmask 255.255.255.0
broadcast 192.168.101.255
network 192.168.101.0
gateway 192.168.101.1
*******
guess02PC
*******
auto eth0
iface eth0 inet static
address 192.168.1.12
netmask 255.255.255.0
broadcast 192.168.1.255
network 192.168.1.0
gateway 192.168.1.1
auto eth0.4
iface eth0 inet static
address 192.168.4.12
netmask 255.255.255.0
broadcast 192.4.1.255
network 192.168.4.0
gateway 192.168.4.1
auto eth0.101
iface eth0 inet static
address 192.168.101.12
netmask 255.255.255.0
broadcast 192.168.101.255
network 192.168.101.0
gateway 192.168.101.1
Anybody know how to do for that the guess PCs can i access to the another 2 vlan networks?
In the guess PC i have installed vlan program.