cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2134
Views
0
Helpful
18
Replies

Adding a port in VLAN 2 and asigning an IP

imranraheel
Level 1
Level 1

I have a 3550 48 port switch. When ever I try to add an IP on to a port which is not a member fo any VLAN the switch gives me an error that the IP is part of VLAN 2 and when I try to add that port on Vlan2 it says

Switch1(config)#interface fastethernet 0/35

Switch1(config-if)#switchport access vlan 2

Command rejected: Fa0/35 not a switching port.

Do specify me how to configure the port in Vlan 2

18 Replies 18

Kevin;

I almost got the point i need to assign IP to the router interface whihc is directly connected to port 35 on the switch and that IP should be from VLAN2 subnet so VLAN 2 will be able ti use it and than I can place routes in switch to route perticular requset from that router

If I have understood your architecture, I don't think you need any layer-3 VLAN 2 interface on the switch at all. no int vlan 2. You will still have the layer-2 switch VLAN 2.

Just put all the switchports on VLAN 2 switchport access vlan 2, and put an IP address on your router and on each host, and it should work.

There is no need for any IP addresses or routes on the switch at all.

Kevin Dorrell

Luxembourg

intelide3
Level 1
Level 1

hi,

correct, you can add an ip address on interface vlan command (to route the traffic) - but you canT assign an ip address on a switchport.

so - you have to create int vlanx (the vlan which you want to route the traffic) - assign it an ip address, and give the vlan a switchport for remote router (not your local 3500 L3 switch).

and, you will need an active (cable-plugged) vlan switchport to ping the interface vlan ip.

dont forget no shut command.

HTH.

Dedy.

Switch1(config)#interface fastethernet 0/35

Switch1(config-if)#no switchport

Switch1(config-if)#ip address

Switch1(config-if)#no shut