HC华为路由器的配置(实训).ppt

实训二十一、华为路由器的配置 ;实训一、华为路由器的基本配置;[R2621]interface ethernet0 //进入e0端口 [R2621-Ethernet0]ip addr //配置该端口的IP地址 [R2621-Ethernet0]undo shutdown //激活该端口 [R2621-Ethernet0]quit //退回上一级模式 [R2621]int e1 [R2621-Ethernet1]ip addr [R2621-Ethernet1]undo shutdown [R2621-Ethernet1] quit [R2621] 二、配置PC机的IP地址 HostA:IP: Sub-mask: gateway: HostB:IP: Sub-mask: gateway: 三、测试连通性 HostA#ping (通) ;HostA#ping (通) HostA#ping (通) ;HostB#ping (通) HostB#ping (通) ;HostB#ping (通);实训二、单臂路由的配置 ;二、配置路由器接口IP地址 Quidwaysystem-view password: [Quidway]interface ethernet0 //进入路由器e0端口 [Quidway–Ethernet0]ip addr //配置IP地址 [Quidway–Ethernet0]int e0.1 //进入e0端口的子接口 [Quidway–Ethernet0.1]ip addr //配置子接口IP地址 [Quidway–Ethernet0.1]encapsulation dot1q 1 //对子接口封装协议 [Quidway-Ethernet0.1]undo shut //激活端口 [Quidway-Ethernet0.1]int e0.2 //进入e0端口的子接口 [Quidway-Ethernet0.2]ip addr [Quidway-Ethernet0.2]encapsulation dot1q 2 //对接口封装协议 [Quidway-Ethernet0.2]undo shut [Quidway]dis curr;三、配置交换机 Quidwaysystem-view password: [Quidway]sysname s3026 //更改交换机名称为s3026 [s3026]vlan 2 //创建vlan2 [s3026-vlan2]port e0/3 //将交换机e0/3端口划分为vlan2 [s3026]vlan 3 //创建vlan3 [s3026-vlan3]port e0/6 //将交换机e0/6端口划分为vlan3 [s3026]int e0/1 [s3026-Ethernet0/1]port link-type trunk //设置e0/1端口为trunk模式 [s3026-Ethernet0/1]port trunk permit vlan all //允许该端口所有Vlan信息通过 [s3026-Ethernet0/1]port trunk encap dot1q //设置该端口封装802.1q协议 [s3026]dis curr //显示交换机配置信息 HostA#ping (通) ;

文档评论(0)

1亿VIP精品文档

相关文档