- 积分
- 150
- 鸿鹄币
- 个
- 好评度
- 点
- 精华
- 注册时间
- 2018-3-17
- 最后登录
- 1970-1-1
- 阅读权限
- 20
- 听众
- 收听
助理工程师
![Rank: 2](https://cdn.hh010.com/static/image/common/star_level1.gif) ![Rank: 2](https://cdn.hh010.com/static/image/common/star_level1.gif)
|
发表于 2018-10-26 16:24:20
|
显示全部楼层
路由器物理接口打开,并配置子接口,开启dot 1Q 关联Vlan,并配置网关地址,指令如下
Router#en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int g0/0
Router(config-if)#no sh
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to up
Router(config-if)#ex
Router(config)#int g0/0.1
Router(config-subif)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0.1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0.1, changed state to up
Router(config-subif)#en
Router(config-subif)#encapsulation dot
Router(config-subif)#encapsulation dot1Q 2
Router(config-subif)#ip add
Router(config-subif)#ip address 192.168.1.1 255.255.255.0
Router(config-subif)#ex
|
板凳
2018-10-26 16:24:20
回复(0)
收起回复
|