c2801 and layer 2 port

Jan 17, 2010 5 Replies
c2801 and layer 2 port open original image

Hello



Can i get layer 2 port on my c2801?



I have flash:c2801-adventerprisek9-mz.124-17.bin and i can't configure int vlan, on fa0/0 i don't have switchport, switchport mode access.. etc I just don't have this options..



There is problem with ios version or something else ?



thank You regards Bart



Bart schrieb:

on routed (a.k.a Layer3 ports)

for VLAN100:

interface Fa0/0.100 encapsulation dot1q 100 ...

Other then ONE layer two port making no sense, yes you can:-)

These commands are not supported on router ports.

You can get equivalent functionality by bridging.

e.g.

bridge 1 protocol ieee

int fa0/0 no ip address bridge-group 1

int fa0/1 no ip address bridge-group 1

The above is equivalent to int fa 0/0 sw mode access

int fa 0/1 sw mode access

on a switch.

####

If you want an SVI equivalent (vlan interface) it looks like this.

bridge irb bridge 1 protocol ieee bridge 1 route ip ! if you get error messages with the above ! repeat the commands. they are order sensitive and I ! always forget the order.

int fa0/0 no ip address bridge-group 1

int fa0/1 no ip address bridge-group 1

int bvi 1 ip address x.x.x.x

! You will of course need some no shuts with the above.

You can also trunk with sub interfaces as indicated bu Uli Link.

On other router, c2821, i have:

flash:c2800nm-advsecurityk9-mz.124-15.T1.bin

Cisco 2821 (revision 53.51) with 1036288K/12288K bytes of memory. Processor board ID FCZ092370MH

4 FastEthernet interfaces 2 Gigabit Ethernet interfaces

interface Vlan5 description projekty zewn ip address 195.184.89.1 255.255.255.128 no ip redirects no ip unreachables no ip proxy-arp ip virtual-reassembly

interface FastEthernet0/0/3 switchport access vlan 5 no cdp enable

There is diffrenece between this routers in this subject?

thank You Bart

Bart schrieb:

Fa0/0/3 is a port on a module ==> L2 port by default Fa0/0 is a integrated port ==> L3 or routed port default

This applies only to the "switch" modules.

e.g. HWIC-4ESW, HWIC-D-9ESW there are as I recall 16 port and 32 port modules too.

Routed modules

formatting link
Switch modules
formatting link

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required