LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-23-2009, 07:30 AM   #1
a31modela
LQ Newbie
 
Registered: Nov 2009
Posts: 4

Rep: Reputation: 0
? 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'
 
Old 11-24-2009, 02:59 AM   #2
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by a31modela View Post
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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up VLAN ? your_shadow03 Linux - Newbie 1 10-17-2009 01:01 AM
VLan help on Cisco 870 to Linux vlan spide21 Linux - Networking 4 07-30-2009 08:20 AM
Setting up vLAN Switch kool_kid Linux - Networking 8 02-28-2008 02:37 PM
VLAN configuration - native VLAN and setting PVID kumarwaiting Linux - Networking 0 07-24-2006 02:51 AM
Setting a VLAN a dynamic IP address? cjs500 Linux - Networking 0 04-24-2005 11:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration