LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   ? on setting up a VLAN in SuSE (http://www.linuxquestions.org/questions/linux-networking-3/on-setting-up-a-vlan-in-suse-770961/)

a31modela 11-23-2009 07:30 AM

? on setting up a VLAN in SuSE
 
Having a problem setting up a vlan for Suse 10 and was looking for some advise.

I have a Suse 10 sp2 server running on a 172.21.XX.XX network. I am running VMWare server on this box and need to create multiple guests on different networks.

I am only using eth0. I created an ifcfg-vlan957 file on my host box using the eth0 card on the host, which is the 172.21.XX.XX address. The vlan957 ip needs to be 10.3.1XX.XX network for the 1st vmware client.

ifconfig shows the vlan , I can ping the ip of the vlan address from the host itself but not from anywhere else ( makes sense since I am not leaving the host box) If I set up the vm guest to use this vlan in vmware-config, he never gets on the network.

I verified with my network guys that the eth0 interface ( the 172.21.XXX.XXX nic) is trunked & should connect for the 10. vlan set up

I dont think this is a vmware issue, I believe I should be able to ping the 10. address from my desktop since I can ping the 172. address with no problem.

I see the vlan I created if I run a route command.
Any thoughts what I am missing here?


Here is my ifconfig file & my ifcfg-vlan957 file:

eth0 Link encap:Ethernet HWaddr 00:XX:XX:XX:XX:XX
inet addr:172.21.XX.XX Bcast:172.21.XX.XXX Mask:255.255.255.0
inet6 addr: XXXXXXXXXXXXXXXXXdced/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1396726 errors:0 dropped:0 overruns:0 frame:0
TX packets:18990 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:157994743 (150.6 Mb) TX bytes:4234337 (4.0 Mb)

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:39412 errors:0 dropped:0 overruns:0 frame:0
TX packets:39412 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:20977833 (20.0 Mb) TX bytes:20977833 (20.0 Mb)

vlan957 Link encap:Ethernet HWaddr 00:XX:XX:XX:XX:XX
inet addr:10.3.XXX.X Bcast:10.3.XXX.XX Mask:255.255.255.192
inet6 addr: XXXXXXXXXXXXXXXXXXXXX/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:492 (492.0 b)

less ifcfg-vlan957
BOOTPROTO='static'
BROADCAST='10.3.XXX.XX'
IPADDR='10.3.XXX.X''
NETMASK='255.255.255.192'
NETWORK='10.3.XXX.X'
REMOTE_IPADDR=''
STARTMODE='auto'
WIRELESS='no'
ETHERDEVICE='eth0'

centosboy 11-24-2009 02:59 AM

Quote:

Originally Posted by a31modela (Post 3766656)
Having a problem setting up a vlan for Suse 10 and was looking for some advise.

I have a Suse 10 sp2 server running on a 172.21.XX.XX network. I am running VMWare server on this box and need to create multiple guests on different networks.

I am only using eth0. I created an ifcfg-vlan957 file on my host box using the eth0 card on the host, which is the 172.21.XX.XX address. The vlan957 ip needs to be 10.3.1XX.XX network for the 1st vmware client.

ifconfig shows the vlan , I can ping the ip of the vlan address from the host itself but not from anywhere else ( makes sense since I am not leaving the host box) If I set up the vm guest to use this vlan in vmware-config, he never gets on the network.

I verified with my network guys that the eth0 interface ( the 172.21.XXX.XXX nic) is trunked & should connect for the 10. vlan set up

I dont think this is a vmware issue, I believe I should be able to ping the 10. address from my desktop since I can ping the 172. address with no problem.

I see the vlan I created if I run a route command.
Any thoughts what I am missing here?


Here is my ifconfig file & my ifcfg-vlan957 file:

eth0 Link encap:Ethernet HWaddr 00:XX:XX:XX:XX:XX
inet addr:172.21.XX.XX Bcast:172.21.XX.XXX Mask:255.255.255.0
inet6 addr: XXXXXXXXXXXXXXXXXdced/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1396726 errors:0 dropped:0 overruns:0 frame:0
TX packets:18990 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:157994743 (150.6 Mb) TX bytes:4234337 (4.0 Mb)

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:39412 errors:0 dropped:0 overruns:0 frame:0
TX packets:39412 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:20977833 (20.0 Mb) TX bytes:20977833 (20.0 Mb)

vlan957 Link encap:Ethernet HWaddr 00:XX:XX:XX:XX:XX
inet addr:10.3.XXX.X Bcast:10.3.XXX.XX Mask:255.255.255.192
inet6 addr: XXXXXXXXXXXXXXXXXXXXX/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:492 (492.0 b)

less ifcfg-vlan957
BOOTPROTO='static'
BROADCAST='10.3.XXX.XX'
IPADDR='10.3.XXX.X''
NETMASK='255.255.255.192'
NETWORK='10.3.XXX.X'
REMOTE_IPADDR=''
STARTMODE='auto'
WIRELESS='no'
ETHERDEVICE='eth0'



i think you are missing

Code:

VLAN=yes


and you have the vlan module loaded right??
did you configure interface with vconfig?


All times are GMT -5. The time now is 10:35 AM.