【文章內容簡介】
Primary Secondary Type Ports SwitchwrBuilding configuration...[OK]Switchconf tEnter configuration mands, one per line. End with CNTL/Z.Switch(config)int g1/1 //進入端口g1/1配置vlan trunk模式Switch(configif)sw trunk encaSwitch(configif)sw trunk allowed vlan all //配置允許所有vlan通過switchASwitch(configif)exitSwitch(config)exitSwitchSwitchwr //保存已有配置Building configuration...[OK]Switch以下為switchB配置:SwitchenableSwitchvlan database% Warning: It is remended to configure VLAN from config mode, as VLAN database mode is being deprecated. Please consult user documentation for configuring VTP/VLAN in config mode.Switch(vlan)vlan 2 name TztAVLAN 2 added: Name: TztASwitch(vlan)vlan 3 name TztBVLAN 3 added: Name: TztBSwitch(vlan)exitAPPLY pleted.Exiting....Switchconfig tEnter configuration mands, one per line. End with CNTL/Z.Switch(config)int f0/1Switch(configif)sw mo accSwitch(configif)sw acc vlan 2Switch(configif)int f0/2Switch(configif)sw mo accSwitch(configif)sw acc vlan 3Switch(configif)exitSwitch(config)show vlan ^% Invalid input detected at 39。^39。