dslreports logo
 
    All Forums Hot Topics Gallery
spc
Search similar:


uniqs
628

gw66
@optonline.net

gw66

Anon

question about ecapsulation

from the below config on my router for the two subnets to talk to each other how do i have to setup my switch? since there are two interfaces ( 1,2) do i have to set the switch port that fe0/0 is going to be plugged in as a trunked port or a access port ? option 1 or 2?

option 1
interface gi0/11
switchport trunk encapsulation dot1q
switchport trunk native vlan 22
switchport trunk allowed vlan 10,40
switchport mode trunk
switchport nonegotiate

option 2
interface gi0/11
switchport mode access

interface FastEthernet0/0
description SW1:Port1
no ip address
duplex auto
speed auto
!
interface FastEthernet0/0.1
description LAN Interface
encapsulation dot1Q 1 native
ip address 1.1.1.3 255.255.255.224
standby 0 ip 1.1.1.1
standby 0 priority 20
standby 0 preempt
!
interface FastEthernet0/0.2
description R2:Fa0/0.2
encapsulation dot1Q 2
ip address 5.5.5.0 255.255.255.254

Da Geek Kid
join:2003-10-11
::1

Da Geek Kid

Member

Are you presuming vlan 1&2 are going to talk to 10&20?

gw66
@optonline.net

gw66

Anon

sorry 10 and 20 should not be in there, i copied and pasted a configr so i wouldnt have to write it up.

disreguard 10 -20 . but i think i was over thinking this. I think if i remove the 1 native and the 2 on each interface for encapsulation it will act as one interface and i can just plug in the port which is set to vlan 2. i havent tested this but i think should work..

DarkLogix
Texan and Proud
Premium Member
join:2008-10-23
Baytown, TX

DarkLogix to gw66

Premium Member

to gw66
For computers on vlan 1 to talk to computers on vlan 2 you need intervlan routing

if its a L3 switch it can do it, if not then you need a router.
HELLFIRE
MVM
join:2009-11-25

HELLFIRE to gw66

MVM

to gw66
Trunked port on the switch. Just make sure you match the VLAN tags on both ends -- ie. if the trunk has
VLAN22 as native VLAN, should be set the same on the router. Otherwise your syslogs are going to get
spammed about "native VLAN mismatch."
said by gw66 :

I think if i remove the 1 native and the 2 on each interface

ie. you won't have the switch doing trunking?

Regards

Da Geek Kid
join:2003-10-11
::1

Da Geek Kid to gw66

Member

to gw66
ok. So, what you ought to do is for Option 1:

fe0/0.22
encap dot 22 native
fe0/0.10
encap do 10
fe0/0.40
encap dot 40

The above should resolve your layer 2 issues.

gw66
@optonline.net

gw66

Anon

the switch it's going into is a l3 switch already. The only reason i ask about the switch is because when i hooked up laptop directly into the router port and set my laptop to a ip address in the ip address 1.1.1.3 255.255.255.224 range i'm able to ping but when i set an ip address from the ip address 5.5.5.0 255.255.255.254 range i get squat? i'm thing becuse of the fe0/0.1 is set to native ?. if i remove native and keep them default it should work??

any ideas? lets remove the switch from this now because i cant plug it into a switch right due ip conflicts.
themagicone
join:2003-08-13
Osseo, MN

themagicone to gw66

Member

to gw66
Your subnet on the 5.5.5.0 interface is wrong. .254 would be invalid. Try .252.

gw66
@optonline.net

gw66

Anon

sorry that was a typeo its was .248. but in any case should that work?
HELLFIRE
MVM
join:2009-11-25

HELLFIRE to gw66

MVM

to gw66
Depends what you're trying to do with the 5.5.5.x address... as themagicone See Profile mentions, a .252 (aka /30) gives
you two useable addresses and is usually used in a point to point configuration.

If you use a .248 (aka /29) gives you 5 useable addresses.

Regards