Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

debian + cisco switch + virtual pcs

Status
Not open for further replies.

dcelso

Programmer
Sep 29, 2005
11
ES
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.
 
How do you have the switchport configured??

I hate all Uppercase... I don't want my groups to seem angry at me all the time! =)
- ColdFlame (vbscript forum)
 
The switch port is correctly configured because if i put the interfaces configuiration of the guess in the host, the host can access correctly to the three networks.
 
hello, sorry for my english, when i said "guess" i would want say "guest
 
Here you ask
"
Anybody know how to do for that the guess PCs can i access to the another 2 vlan networks?"

then Unclerico asks

"How do you have the switchport configured?? "

then you say

"The switch port is correctly configured because if i put the interfaces configuiration of the guess in the host, the host can access correctly to the three networks. "

HUH???

Burt
 
I says that if I put in the debian host this configuration.
auto eth0
iface eth0 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

auto eth0.4
iface eth0 inet static
address 192.168.4.10
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.10
netmask 255.255.255.0
broadcast 192.168.101.255
network 192.168.101.0
gateway 192.168.101.1

The hostPC can access to the three networks.
But when I put the first posted configuration, the guestsPC can not access to the three networks, only can access to the 192.168.1.X net. I think that is problem of the configured bridge but I unsuccessfully tried several configurations.
 
Hello again,
I have done the same configuration using virtualbox instead of kvm and it works well. ¿What can be the trouble?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top