| 07 交换机基本配置 基本配置分析 <H3C>system-view [sw1]interface LoopBack 0 //创建环回口作为管理地址 [sw1-LoopBack0]ip address 100.100.100.100 32  //配置地址 [sw1-LoopBack0]description manage  //描述 [sw1-LoopBack0]quit [sw1]vlan 10  //创建VLAN10   [sw1-vlan10]description caiwu  //描述VLAN [sw1]vlan 20 to 23 //创建VLAN20到23 [sw1]display vlan all  //查看所有VLAN [sw1]display vlan  //查看VLAN信息 [sw1]display vlan brief //查看VLAN摘要信息 [sw1]display interface GigabitEthernet 1/0/1  //查看接口信息   [sw1]interface Vlan-interface 10  //进入逻辑vlanif10接口 [sw1-Vlan-interface10]ip address 172.16.10.1 24  //配置地址 [sw1-Vlan-interface10]quit   [sw1]interface GigabitEthernet 1/0/1  //进入物理接口 [sw1-GigabitEthernet1/0/1]description to pc  //配置描述 [sw1-GigabitEthernet1/0/1]duplex full  //接口配置成全双工 [sw1-GigabitEthernet1/0/1]speed ?   10    Specify speed as 10 Mbps   100   Specify speed as 100 Mbps   1000  Specify speed as 1000 Mbps   auto  Enable port's speed negotiation automatically [sw1-GigabitEthernet1/0/1]speed 1000  //手工配置速率为1000 [sw1-GigabitEthernet1/0/1]mdix-mode ?   automdix  Configures port for automatic detection ofthe cable   mdi       Configures port for connecting a PC witha crossover cable   mdix      Configures port for connecting a PC witha straight-through cable [sw1-GigabitEthernet1/0/1]mdix-mode automdix //配置以太网口的MDI模式 [sw1-GigabitEthernet1/0/1]shutdown  //关闭接口 [sw1-GigabitEthernet1/0/1]undo shutdown  //开启接口 
 |