网段的最终表现形式是IP地址,也就是说路由器的IP地址,那么我们如何配置路由器的IP地址呢?文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10833.html
还是拿上一个拓扑图来举例子:文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10833.html
路由器AR1配置如下文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10833.html
[AR1]interface GigabitEthernet 0/0/0文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10833.html
[AR1-GigabitEthernet0/0/0]ip address 192.168.1.1 24文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10833.html
配置路由器AR2文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10833.html
[AR2]interface GigabitEthernet 0/0/0文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10833.html
[AR2-GigabitEthernet0/0/0]ip address 192.168.1.2 24文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10833.html
[AR2]interface GigabitEthernet 0/0/1文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10833.html
[AR2-GigabitEthernet0/0/1]ip address 192.168.2.1 24文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10833.html
路由器AR3配置文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10833.html
[AR3]interface GigabitEthernet 0/0/0文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10833.html
[AR3-GigabitEthernet0/0/0]ip address 192.168.2.2 24文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10833.html
[AR3]interface GigabitEthernet 0/0/1文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10833.html
[AR3-GigabitEthernet0/0/1]ip address 192.168.3.1 24文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10833.html
配置AR4文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10833.html
[AR4]interface GigabitEthernet 0/0/0文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10833.html
[AR4-GigabitEthernet0/0/0]ip address 192.168.3.2 24文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10833.html
如何查看配置好的IP地址呢?有两种方式文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10833.html
我们可以进入某个接口通过命令display this 查询这个接口的IP文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10833.html
[AR2]interface GigabitEthernet 0/0/0文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10833.html
[AR2-GigabitEthernet0/0/0]display this文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10833.html
第二种通过命令:display ip interface brief查看所有接口IP文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10833.html
>AR2文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10833.html
文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10833.html