我的问题

The total number of vlans is : 6
--------------------------------------------------------------------------------

U: Up;         D: Down;         TG: Tagged;         UT: Untagged;
MP: Vlan-mapping;               ST: Vlan-stacking;
#: ProtocolTransparent-vlan;    *: Management-vlan;
--------------------------------------------------------------------------------

VID  Type    Ports
--------------------------------------------------------------------------------

1    common  UT:GE0/0/19(U)     GE0/0/20(D)     GE0/0/21(U)     GE0/0/22(D)

GE0/0/23(D)     GE0/0/24(D)     GE0/0/25(D)     GE0/0/26(U)

GE0/0/27(U)     GE0/0/28(U)     GE0/0/29(U)     GE0/0/30(D)

GE0/0/31(D)     GE0/0/32(U)     GE0/0/33(U)     GE0/0/34(U)

GE0/0/35(U)     GE0/0/36(U)     GE0/0/37(D)     GE0/0/38(U)

GE0/0/39(U)     GE0/0/40(D)     GE0/0/41(D)     GE0/0/42(U)

GE0/0/45(U)     GE0/0/46(U)     GE0/0/47(U)     GE0/0/48(U)

Eth-Trunk2(D)

2    common  UT:GE0/0/1(U)      GE0/0/2(U)      GE0/0/3(U)      GE0/0/4(U)

GE0/0/5(D)      GE0/0/6(D)      GE0/0/7(D)      GE0/0/8(U)

GE0/0/9(U)      GE0/0/10(D)     GE0/0/11(D)     GE0/0/12(D)

GE0/0/13(D)     GE0/0/14(D)     GE0/0/15(D)     GE0/0/16(D)

GE0/0/17(D)     GE0/0/18(D)

TG:GE0/0/21(U)     GE0/0/45(U)     GE0/0/46(U)     Eth-Trunk2(D)

3    common  TG:GE0/0/21(U)     GE0/0/45(U)     GE0/0/46(U)     Eth-Trunk2(D)

4    common  TG:GE0/0/21(U)     GE0/0/45(U)     GE0/0/46(U)     Eth-Trunk2(D)

5    common  TG:GE0/0/21(U)     GE0/0/45(U)     GE0/0/46(U)     Eth-Trunk2(D)

7    common  TG:GE0/0/21(U)     GE0/0/45(U)     GE0/0/46(U)     Eth-Trunk2(D)

VID  Status  Property      MAC-LRN Statistics Description
--------------------------------------------------------------------------------

1    enable  default       enable  disable    VLAN 0001

2    enable  default       enable  disable    VLAN 0002

3    enable  default       enable  disable    VLAN 0003

4    enable  default       enable  disable    VLAN 0004

5    enable  default       enable  disable    VLAN 0005

7    enable  default       enable  disable    VLAN 0007

<QianAn-Bei-SW>
<QianAn-Bei-SW>
<QianAn-Bei-SW>
<QianAn-Bei-SW>dis cur
#
!Software Version V200R001C00SPC300
sysname QianAn-Bei-SW
#
vlan batch 2 to 5 7
#
undo http server enable
#
undo nap slave enable
#
aaa
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default
 domain default_admin
 local-user admin password cipher %$%$>"MrLwij&SId>=!/.LcD_\SJ%$%$
 local-user admin service-type telnet
#
interface Vlanif1
#
interface Vlanif2
 ip address 10.210.99.129 255.255.255.128
#
interface Vlanif4
 ip address 130.0.30.50 255.255.0.0
#
interface MEth0/0/1
#
interface Eth-Trunk2     //对多个以太网接口捆绑形成一个Eth-trunk逻辑接口,目的是增大带宽和链路之间的可靠性
 port link-type trunk
 port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/1
 port link-type access
 port default vlan 2
#
interface GigabitEthernet0/0/2
 port link-type access
 port default vlan 2
#
interface GigabitEthernet0/0/3
 port link-type access
 port default vlan 2
#
interface GigabitEthernet0/0/4
 port link-type access
 port default vlan 2
#
interface GigabitEthernet0/0/5
 port link-type access
 port default vlan 2
#
interface GigabitEthernet0/0/6
 port link-type access
 port default vlan 2
#
interface GigabitEthernet0/0/7
 port link-type access
 port default vlan 2
#
interface GigabitEthernet0/0/8
 port link-type access
 port default vlan 2
#
interface GigabitEthernet0/0/9
 port link-type access
 port default vlan 2
#
interface GigabitEthernet0/0/10
 port link-type access
 port default vlan 2
#
interface GigabitEthernet0/0/11
 port link-type access
 port default vlan 2
#
interface GigabitEthernet0/0/12
 port link-type access
 port default vlan 2
#
interface GigabitEthernet0/0/13
 port link-type access
 port default vlan 2
#
interface GigabitEthernet0/0/14
 port link-type access
 port default vlan 2
#
interface GigabitEthernet0/0/15
 port link-type access
 port default vlan 2
#
interface GigabitEthernet0/0/16
 port link-type access
 port default vlan 2
#
interface GigabitEthernet0/0/17
 port link-type access
 port default vlan 2
#
interface GigabitEthernet0/0/18
 port link-type access
 port default vlan 2
#
interface GigabitEthernet0/0/19
#
interface GigabitEthernet0/0/20
#

interface GigabitEthernet0/0/21
 port link-type trunk
 port trunk allow-pass vlan 2 to 4094

#
interface GigabitEthernet0/0/22
#
interface GigabitEthernet0/0/23
#
interface GigabitEthernet0/0/24
#
interface GigabitEthernet0/0/25
#
interface GigabitEthernet0/0/26
#
interface GigabitEthernet0/0/27
#
interface GigabitEthernet0/0/28
#
interface GigabitEthernet0/0/29
#
interface GigabitEthernet0/0/30
#
interface GigabitEthernet0/0/31
#
interface GigabitEthernet0/0/32
#
interface GigabitEthernet0/0/33
#
interface GigabitEthernet0/0/34
#
interface GigabitEthernet0/0/35
#
interface GigabitEthernet0/0/36
#
interface GigabitEthernet0/0/37
#
interface GigabitEthernet0/0/38
#
interface GigabitEthernet0/0/39
#
interface GigabitEthernet0/0/40
#
interface GigabitEthernet0/0/41
#
interface GigabitEthernet0/0/42

#
interface GigabitEthernet0/0/43
 eth-trunk 2
#
interface GigabitEthernet0/0/44
 eth-trunk 2
#

interface GigabitEthernet0/0/45
 combo-port fiber
 port link-type trunk
 port trunk allow-pass vlan 2 to 4094

#

interface GigabitEthernet0/0/46
 combo-port fiber    //激活光口

port link-type trunk  //端口链路类型
 port trunk allow-pass vlan 2 to 4094

#
interface GigabitEthernet0/0/47  //道路上的监控设备用47 48口
 combo-port fiber  //激活光口

port media type fiber //端口介质类型 光纤
 undo negotiation auto//不自动协商
 
#
interface GigabitEthernet0/0/48
 port media type fiber
 undo negotiation auto
 combo-port fiber
#
interface NULL0
#
ip route-static 0.0.0.0 0.0.0.0 10.213.91.135
#
user-interface con 0
 authentication-mode password
 set authentication password cipher %$%$^,{~"KK~SA>cz]$R&Ry5,+"v~q>%[email protected][K&Q#jD9
6‘-Aa1(#%$%$
user-interface vty 0 4
 authentication-mode aaa
 user privilege level 3
user-interface vty 16 20
#
return

谁能解答 45和46口是同时用吗?  在这的VLANif4 有什么用, 也没用到啊

时间: 2024-10-10 11:03:05