第三章: 接口操作

  交换机在默认情况下,所有端口都是ACCESS类型的二层端口。
 Passport-8310:5#  config ip forwarding enable启动交换机的三层功能,默认情况为开启   //
 基本接口参数操作:
Passport-8310:5# config ethernet <port> speed {10|100|1000}    // 改变端口速率
Passport-8310:5# config ethernet <port> duplex {full|half}      // 改变端口双工模式
Passport-8310:5# config ethernet <port> state {enable|disable|test} // 改变端口工作状态
 
如将端口4/1自适应能力关掉,速率改为1000M ,双工模式为全双工,激活该接口
Passport-8310:5#  config ethernet 4/1 auto-negotiate enable //启动端口自适应
Passport-8310:5#  config ethernet 4/1 speed 1000    //改变端口速率
Passport-8310:5#  config ethernet 4/1 duplex full       //改变端口双工模式
Passport-8310:5#  config ethernet 4/1 state enable    改变端口工作 //
 
 
三层接口的操作:
在创建桥路由接口的时候8600和8300,1600系列有一些不同
ERS8600
Passport-8610:5# config Ethernet <port> ip create <A.B.C.D/a.b.c.d> <vlan id>
 
如创建4/1为Broute port 地址为192.168.10.10 子网掩码  255.255.255.0 vlan-id 2013
Passport-8610:5#  config Ethernet 4/1 ip create 192.168.10.10/255.255.255.0 2013 vlan  的号 2013
 
ERS8300,1600
要想在8300 和1600系列上启用Broute port ,首先要将接口加入到VLAN中,然后配置相应的VLAN 地址。此处先记住步骤,在下一章将会讲到相应的具体实现方法。
 
management port configuration
Configuring an IP address for the management port
config bootconfig net mgmt ip <ipaddr/mask> [cpu-slot <value>]
save bootconfig
default the management port uses the static IP address of 192.168.168.168/24 for the CPU card in slot 5 and 192.168.168.169/24 for the CPU card in slot 6.
 
查看信息:
config bootconfig net mgmt info
show boot net