美文网首页
2018-12-06 交换机 trunk vlan 配置

2018-12-06 交换机 trunk vlan 配置

作者: 西柚味水溶c100 | 来源:发表于2018-12-06 17:22 被阅读0次

    Switch>en

    Switch#conf t

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

    Switch(config)#vlan 10

    Switch(config-vlan)#name xiaoshoubu

    Switch(config-vlan)#exit

    Switch(config)#vlan 20

    Switch(config-vlan)#name caiwubu

    Switch(config-vlan)#exit

    Switch(config)#int vlan 10

    %LINK-5-CHANGED: Interface Vlan10, changed state to up

    Switch(config-if)#no shut

    Switch(config-if)#exit

    Switch(config)#int vlan 20

    %LINK-5-CHANGED: Interface Vlan20, changed state to up

    Switch(config-if)#no shut

    Switch(config-if)#exit

    Switch(config)#int f 0/1

    Switch(config-if)#sw m a

    Switch(config-if)#sw a vlan 10

    %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan10, changed state to up

    Switch(config-if)#exit

    Switch(config)#int f 0/2

    Switch(config-if)#sw m a

    Switch(config-if)#sw a vlan 20

    %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan20, changed state to up

    Switch(config-if)#exit

    Switch(config)#int r f 0/23-24

    Switch(config-if-range)#sw m t

    %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/23, changed state to down

    %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/23, changed state to up

    %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to down

    %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to up

    Switch(config-if-range)#end

    Switch#

    %SYS-5-CONFIG_I: Configured from console by console

    Switch#show run

    Building configuration...

    Current configuration : 1225 bytes

    !

    version 12.2

    no service timestamps log datetime msec

    no service timestamps debug datetime msec

    no service password-encryption

    !

    hostname Switch

    !

    !

    !

    interface FastEthernet0/1

    switchport access vlan 10

    switchport mode access

    !

    interface FastEthernet0/2

    switchport access vlan 20

    switchport mode access

    !

    interface FastEthernet0/3

    !

    interface FastEthernet0/4

    !

    interface FastEthernet0/5

    !

    interface FastEthernet0/6

    !

    interface FastEthernet0/7

    !

    interface FastEthernet0/8

    !

    interface FastEthernet0/9

    !

    interface FastEthernet0/10

    !

    interface FastEthernet0/11

    !

    interface FastEthernet0/12

    !

    interface FastEthernet0/13

    !

    interface FastEthernet0/14

    !

    interface FastEthernet0/15

    !

    interface FastEthernet0/16

    !

    interface FastEthernet0/17

    !

    interface FastEthernet0/18

    !

    interface FastEthernet0/19

    !

    interface FastEthernet0/20

    !

    interface FastEthernet0/21

    !

    interface FastEthernet0/22

    !

    interface FastEthernet0/23

    switchport mode trunk

    !

    interface FastEthernet0/24

    switchport mode trunk

    !

    interface GigabitEthernet1/1

    !

    interface GigabitEthernet1/2

    !

    interface Vlan1

    no ip address

    shutdown

    !

    interface Vlan10

    no ip address

    !

    interface Vlan20

    no ip address

    !

    !

    line con 0

    !

    line vty 0 4

    login

    line vty 5 15

    login

    !

    !

    end

    相关文章

      网友评论

          本文标题:2018-12-06 交换机 trunk vlan 配置

          本文链接:https://www.haomeiwen.com/subject/gxnocqtx.html