Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > Cisco > vlan configuration not working

Reply
Thread Tools

vlan configuration not working

 
 
Daniel Eyholzer
Guest
Posts: n/a
 
      12-23-2004
Hi there


I have two openbsd 3.6 hosts connected to a cisco catalyst 3550 series
switch.

OpenBSD host A: interface em1 192.168.134.90/29
OpenBSD host B: interface em1 192.168.134.91/29

Host A is connected on FE 0/1 port and host B on FE 0/2 port on the cisco
switch. Both hosts are in vlan 1.

interface FastEthernet0/1
switchport mode dynamic desirable
!
interface FastEthernet0/2
switchport mode dynamic desirable

With this configuration both hosts can ping each other. Now I want to set
up a trunk link on the cisco FE 0/2 port where host B is connected:

interface FastEthernet0/2
switchport trunk encapsulation dot1q
switchport mode trunk

hostB# ifconfig em1 delete
hostB# ifconfig em1 up
hostB# ifconfig vlan0 192.168.134.91 netmask 255.255.255.248 vlan 1 vlandev
em1

After this configuration change I can no longer ping from or to host B. Did
I forget a configuration setting or what could be the problem?


Thanks, Daniel
 
Reply With Quote
 
 
 
 
PES
Guest
Posts: n/a
 
      12-23-2004
Daniel Eyholzer wrote:
> Hi there
>
>
> I have two openbsd 3.6 hosts connected to a cisco catalyst 3550 series
> switch.
>
> OpenBSD host A: interface em1 192.168.134.90/29
> OpenBSD host B: interface em1 192.168.134.91/29
>
> Host A is connected on FE 0/1 port and host B on FE 0/2 port on the cisco
> switch. Both hosts are in vlan 1.
>
> interface FastEthernet0/1
> switchport mode dynamic desirable
> !
> interface FastEthernet0/2
> switchport mode dynamic desirable
>
> With this configuration both hosts can ping each other. Now I want to set
> up a trunk link on the cisco FE 0/2 port where host B is connected:
>
> interface FastEthernet0/2
> switchport trunk encapsulation dot1q
> switchport mode trunk
>
> hostB# ifconfig em1 delete
> hostB# ifconfig em1 up
> hostB# ifconfig vlan0 192.168.134.91 netmask 255.255.255.248 vlan 1 vlandev
> em1
>
> After this configuration change I can no longer ping from or to host B. Did
> I forget a configuration setting or what could be the problem?
>
>
> Thanks, Daniel


I think the switch is expecting untagged packets at vlan 1 because it is
the native vlan. By changing your configuration on the host you are
likely tagging them as vlan 1. Try putting fa0/1 and 0/2 in vlan2 to
test this.

int fa0/1
switchport mode access
switchport access vlan 2

int fa0/2
switchport mode access
switchport access vlan 2

Test to make sure they can ping one another.

Now take fa0/2 to a trunk

interface FastEthernet0/2
switchport trunk encapsulation dot1q
switchport mode trunk



hostB# ifconfig em1 delete
hostB# ifconfig em1 up
hostB# ifconfig vlan0 192.168.134.91 netmask 255.255.255.248 vlan 1
vlandev em1

You may also be able to change the native vlan as follows. This would
make it expect to see vlan 1 packets tagged.

int fa0/2
switchport trunk native vlan 100

--
-------------------------
Paul Stewart
Lexnet Inc.
Email address is in ROT13
 
Reply With Quote
 
 
 
 
Daniel Eyholzer
Guest
Posts: n/a
 
      12-23-2004
PES <> wrote:
> I think the switch is expecting untagged packets at vlan 1 because it is
> the native vlan. By changing your configuration on the host you are
> likely tagging them as vlan 1. Try putting fa0/1 and 0/2 in vlan2 to
> test this.


Thanks! You are right, moving the hosts to another vlan than vlan 1 did
solve the problem.


Daniel

 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
To vlan or to not vlan thegmanagain Cisco 2 05-13-2008 01:21 PM
native vlan mismatch on 2 2924 switches w/ only 1 vlan defined (same on both switches) avraham shir-el Cisco 4 07-20-2004 08:08 AM
HI, I have some question about native vlan and default vlan. PS2 gamer Cisco 1 05-28-2004 11:47 AM
Auxiliary VLAN V VLan Neil Rowland Cisco 1 04-14-2004 02:03 PM
VLAN or Not to VLAN Paul Cisco 0 10-27-2003 06:16 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57