You are on page 1of 16

Converting independent ip ports to vlan

--- System Configuration Dialog ---

Enable secret warning

----------------------------------

In order to access the device manager, an enable secret is required

If you enter the initial configuration dialog, you will be prompted for the enab
le secret

If you choose not to enter the intial configuration dialog, or if you exit setup
without setting the enable secret,

please set an enable secret using the following CLI in configuration mode-

enable secret 0 <cleartext password>

----------------------------------

Would you like to enter the initial configuration dialog? [yes/no]: no

Switch>en

*Mar 1 00:02:56.294: %LINK-5-CHANGED: Interface Vlan1, changed state to adminis


tratively down

*Mar 1 00:02:56.303: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, cha


nged state to down

Switch#config t

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#do sh run

Building configuration...
Current configuration : 2138 bytes

version 12.2

no service pad

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

hostname Switch

boot-start-marker

boot-end-marker

no aaa new-model

switch 3 provision ws-c3750v2-48ts

system mtu routing 1500

!
!

spanning-tree mode pvst

spanning-tree extend system-id

vlan internal allocation policy ascending

interface FastEthernet3/0/1

interface FastEthernet3/0/2

interface FastEthernet3/0/3

interface FastEthernet3/0/4

interface FastEthernet3/0/5

interface FastEthernet3/0/6

interface FastEthernet3/0/7

interface FastEthernet3/0/8

!
interface FastEthernet3/0/9

interface FastEthernet3/0/10

interface FastEthernet3/0/11

interface FastEthernet3/0/12

interface FastEthernet3/0/13

interface FastEthernet3/0/14

interface FastEthernet3/0/15

interface FastEthernet3/0/16

interface FastEthernet3/0/17

interface FastEthernet3/0/18

interface FastEthernet3/0/19

interface FastEthernet3/0/20

interface FastEthernet3/0/21
!

interface FastEthernet3/0/22

interface FastEthernet3/0/23

interface FastEthernet3/0/24

interface FastEthernet3/0/25

interface FastEthernet3/0/26

interface FastEthernet3/0/27

interface FastEthernet3/0/28

interface FastEthernet3/0/29

interface FastEthernet3/0/30

interface FastEthernet3/0/31

interface FastEthernet3/0/32

interface FastEthernet3/0/33

!
interface FastEthernet3/0/34

interface FastEthernet3/0/35

interface FastEthernet3/0/36

interface FastEthernet3/0/37

interface FastEthernet3/0/38

interface FastEthernet3/0/39

interface FastEthernet3/0/40

interface FastEthernet3/0/41

interface FastEthernet3/0/42

interface FastEthernet3/0/43

interface FastEthernet3/0/44

interface FastEthernet3/0/45

interface FastEthernet3/0/46
!

interface FastEthernet3/0/47

interface FastEthernet3/0/48

interface GigabitEthernet3/0/1

interface GigabitEthernet3/0/2

interface GigabitEthernet3/0/3

interface GigabitEthernet3/0/4

interface Vlan1

no ip address

shutdown

ip classless

ip http server

ip http secure-server

line con 0

line vty 5 15
!

end

Switch(config)#int fa3/0/1

Switch(config-if)#no switchport

Switch(config-if)#

*Mar 1 00:04:33.300: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthern


et3/0/1, changed state to down

*Mar 1 00:04:35.314: %LINK-3-UPDOWN: Interface FastEthernet3/0/1, changed state


to up

*Mar 1 00:04:36.320: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthern


et3/0/1, changed state to up

Switch(config-if)#ip add 192.168.60.2 255.255.255.0

Switch(config-if)#exit

Switch(config)#int fa3/0/2

Switch(config-if)#no switchport

Switch(config-if)#

*Mar 1 00:06:11.464: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthern


et3/0/2, changed state to down

*Mar 1 00:06:13.477: %LINK-3-UPDOWN: Interface FastEthernet3/0/2, changed state


to down

Switch(config-if)#

*Mar 1 00:06:15.625: %LINK-3-UPDOWN: Interface FastEthernet3/0/2, changed state


to up

*Mar 1 00:06:16.631: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthern


et3/0/2, changed state to up

Switch(config-if)#ip add 192.168.60.3 255.255.255.0

192.168.60.0 overlaps with FastEthernet3/0/1


Switch(config-if)#ip add 192.168.61.3 255.255.255.0

Switch(config-if)#exit

Switch(config)#int fa3/0/3

Switch(config-if)#no switchport

Switch(config-if)#

*Mar 1 00:08:28.416: %LINK-3-UPDOWN: Interface FastEthernet3/0/3, changed state


to down

Switch(config-if)#no shut

Switch(config-if)#ip add 192.168.62.4 255.255.255.0

Switch(config-if)#do sh ip int b

Interface IP-Address OK? Method Status Protocol

Vlan1 unassigned YES unset administratively down down

FastEthernet3/0/1 192.168.60.2 YES manual up up

FastEthernet3/0/2 192.168.61.3 YES manual up up

FastEthernet3/0/3 192.168.62.4 YES manual down down

FastEthernet3/0/4 unassigned YES unset down down

FastEthernet3/0/5 unassigned YES unset down down

FastEthernet3/0/6 unassigned YES unset down down

FastEthernet3/0/7 unassigned YES unset down down

FastEthernet3/0/8 unassigned YES unset down down

FastEthernet3/0/9 unassigned YES unset down down

FastEthernet3/0/10 unassigned YES unset down down

FastEthernet3/0/11 unassigned YES unset down down

FastEthernet3/0/12 unassigned YES unset down down

FastEthernet3/0/13 unassigned YES unset down down

FastEthernet3/0/14 unassigned YES unset down down


FastEthernet3/0/15 unassigned YES unset down down

FastEthernet3/0/16 unassigned YES unset down down

FastEthernet3/0/17 unassigned YES unset down down

FastEthernet3/0/18 unassigned YES unset down down

FastEthernet3/0/19 unassigned YES unset down down

FastEthernet3/0/20 unassigned YES unset down down

FastEthernet3/0/21 unassigned YES unset down down

FastEthernet3/0/22 unassigned YES unset down down

FastEthernet3/0/23 unassigned YES unset down down

FastEthernet3/0/24 unassigned YES unset down down

FastEthernet3/0/25 unassigned YES unset down down

FastEthernet3/0/26 unassigned YES unset down down

FastEthernet3/0/27 unassigned YES unset down down

FastEthernet3/0/28 unassigned YES unset down down

FastEthernet3/0/29 unassigned YES unset down down

FastEthernet3/0/30 unassigned YES unset down down

FastEthernet3/0/31 unassigned YES unset down down

FastEthernet3/0/32 unassigned YES unset down down

FastEthernet3/0/33 unassigned YES unset down down

FastEthernet3/0/34 unassigned YES unset down down

FastEthernet3/0/35 unassigned YES unset down down

FastEthernet3/0/36 unassigned YES unset down down

FastEthernet3/0/37 unassigned YES unset down down

FastEthernet3/0/38 unassigned YES unset down down

FastEthernet3/0/39 unassigned YES unset down down


FastEthernet3/0/40 unassigned YES unset down down

FastEthernet3/0/41 unassigned YES unset down down

FastEthernet3/0/42 unassigned YES unset down down

FastEthernet3/0/43 unassigned YES unset down down

FastEthernet3/0/44 unassigned YES unset down down

FastEthernet3/0/45 unassigned YES unset down down

FastEthernet3/0/46 unassigned YES unset down down

FastEthernet3/0/47 unassigned YES unset down down

FastEthernet3/0/48 unassigned YES unset down down

GigabitEthernet3/0/1 unassigned YES unset down down

GigabitEthernet3/0/2 unassigned YES unset down down

GigabitEthernet3/0/3 unassigned YES unset down down

GigabitEthernet3/0/4 unassigned YES unset down down

Switch(config-if)#

*Mar 1 00:15:20.792: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthern


et3/0/1, changed state to down

*Mar 1 00:15:21.798: %LINK-3-UPDOWN: Interface FastEthernet3/0/1, changed state


to down

*Mar 1 00:15:30.330: %LINK-3-UPDOWN: Interface FastEthernet3/0/1, changed state


to up

*Mar 1 00:15:31.336: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthern


et3/0/1, changed state to up

*Mar 1 00:15:36.604: %LINK-3-UPDOWN: Interface FastEthernet3/0/3, changed state


to up

*Mar 1 00:15:37.611: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthern


et3/0/3, changed state to up

Switch(config-if)#exit

Switch(config)#int vlan 1
Switch(config-if)#switchport mode access

% Invalid input detected at '^' marker.

Switch(config-if)#exit

Switch(config)#int fa3/0/1

Switch(config-if)#switchport mode access

Command rejected: Fa3/0/1 not a switching port.

Switch(config-if)#switchport

Switch(config-if)#

*Mar 1 00:19:10.480: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet3/0/1, changed


state to down

*Mar 1 00:19:12.494: %LINK-3-UPDOWN: Interface FastEthernet3/0/1, changed state to up

*Mar 1 00:19:13.500: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet3/0/1, changed


state to up

Switch(config-if)#do sh vlan

VLAN Name Status Ports

---- -------------------------------- --------- -------------------------------

1 default active Fa3/0/1, Fa3/0/4, Fa3/0/5

Fa3/0/6, Fa3/0/7, Fa3/0/8

Fa3/0/9, Fa3/0/10, Fa3/0/11

Fa3/0/12, Fa3/0/13, Fa3/0/14

Fa3/0/15, Fa3/0/16, Fa3/0/17

Fa3/0/18, Fa3/0/19, Fa3/0/20

Fa3/0/21, Fa3/0/22, Fa3/0/23


Fa3/0/24, Fa3/0/25, Fa3/0/26

Fa3/0/27, Fa3/0/28, Fa3/0/29

Fa3/0/30, Fa3/0/31, Fa3/0/32

Fa3/0/33, Fa3/0/34, Fa3/0/35

Fa3/0/36, Fa3/0/37, Fa3/0/38

Fa3/0/39, Fa3/0/40, Fa3/0/41

Fa3/0/42, Fa3/0/43, Fa3/0/44

Fa3/0/45, Fa3/0/46, Fa3/0/47

Fa3/0/48, Gi3/0/1, Gi3/0/2

Gi3/0/3, Gi3/0/4

1002 fddi-default act/unsup

1003 token-ring-default act/unsup

1004 fddinet-default act/unsup

VLAN Name Status Ports

---- -------------------------------- --------- -------------------------------

1005 trnet-default act/unsup

VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2

---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------

1 enet 100001 1500 - - - - - 0 0

1002 fddi 101002 1500 - - - - - 0 0

1003 tr 101003 1500 - - - - - 0 0

1004 fdnet 101004 1500 - - - ieee - 0 0

1005 trnet 101005 1500 - - - ibm - 0 0


Remote SPAN VLANs

------------------------------------------------------------------------------

Primary Secondary Type Ports

------- --------- ----------------- ------------------------------------------

Switch(config-if)#exit

Switch(config)#int fa3/0/2

Switch(config-if)#switchport

Switch(config-if)#

*Mar 1 00:20:34.551: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet3/0/2, changed


state to down

*Mar 1 00:20:36.564: %LINK-3-UPDOWN: Interface FastEthernet3/0/2, changed state to up

*Mar 1 00:20:37.571: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet3/0/2, changed


state to up

Switch(config-if)#exit

Switch(config)#int fa3/0/3

Switch(config-if)#switchport

Switch(config-if)#

*Mar 1 00:21:03.206: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet3/0/3, changed


state to down

*Mar 1 00:21:05.220: %LINK-3-UPDOWN: Interface FastEthernet3/0/3, changed state to up

*Mar 1 00:21:06.226: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet3/0/3, changed


state to up

Switch(config-if)#do sh vlan
VLAN Name Status Ports

---- -------------------------------- --------- -------------------------------

1 default active Fa3/0/1, Fa3/0/2, Fa3/0/3

Fa3/0/4, Fa3/0/5, Fa3/0/6

Fa3/0/7, Fa3/0/8, Fa3/0/9

Fa3/0/10, Fa3/0/11, Fa3/0/12

Fa3/0/13, Fa3/0/14, Fa3/0/15

Fa3/0/16, Fa3/0/17, Fa3/0/18

Fa3/0/19, Fa3/0/20, Fa3/0/21

Fa3/0/22, Fa3/0/23, Fa3/0/24

Fa3/0/25, Fa3/0/26, Fa3/0/27

Fa3/0/28, Fa3/0/29, Fa3/0/30

Fa3/0/31, Fa3/0/32, Fa3/0/33

Fa3/0/34, Fa3/0/35, Fa3/0/36

Fa3/0/37, Fa3/0/38, Fa3/0/39

Fa3/0/40, Fa3/0/41, Fa3/0/42

Fa3/0/43, Fa3/0/44, Fa3/0/45

Fa3/0/46, Fa3/0/47, Fa3/0/48

Gi3/0/1, Gi3/0/2, Gi3/0/3

Gi3/0/4

1002 fddi-default act/unsup

1003 token-ring-default act/unsup

VLAN Name Status Ports


---- -------------------------------- --------- -------------------------------

1004 fddinet-default act/unsup

1005 trnet-default act/unsup

VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2

---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------

1 enet 100001 1500 - - - - - 0 0

1002 fddi 101002 1500 - - - - - 0 0

1003 tr 101003 1500 - - - - - 0 0

1004 fdnet 101004 1500 - - - ieee - 0 0

1005 trnet 101005 1500 - - - ibm - 0 0

Remote SPAN VLANs

------------------------------------------------------------------------------

Primary Secondary Type Ports

------- --------- ----------------- ------------------------------------------

Switch(config-if)#

Switch#

*Mar 1 00:23:47.053: %SYS-5-CONFIG_I: Configured from console by console

You might also like