From: Bart on
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

From: Uli Link on
Bart schrieb:
> 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 ?

on routed (a.k.a Layer3 ports)

for VLAN100:

interface Fa0/0.100
encapsulation dot1q 100
...

--
ULi
From: bod43 on
On 17 Jan, 14:22, Bart <bart-nos...(a)nospam.gmail.com> wrote:
> 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 ?

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.
From: Bart on
bod43 pisze:
> On 17 Jan, 14:22, Bart <bart-nos...(a)nospam.gmail.com> wrote:
>> 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 ?
>
> 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
From: Uli Link on
Bart schrieb:

> There is diffrenece between this routers in this subject?

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

--
ULi