当前位置:网站首页>静态路由复习
静态路由复习
2022-07-19 05:16:00 【Co_ml】
设计拓扑,ip分配:
设置valn:[sw1]vlan batch 2 to 3
sw1]interface Ethernet0/0/1
[sw1-Ethernet0/0/1]port link-type access
[sw1-Ethernet0/0/1]port default vlan 2
sw1]interface Ethernet0/0/2
[sw1-Ethernet0/0/2]port link-type access
[sw1-Ethernet0/0/2]port default vlan 3
创建truck干道(sw1两条)
[sw1]interface e0/0/1
[sw1-Ethernet0/0/1]port link-type trunk
[sw1-Ethernet0/0/2]port trunk allow-pass vlan 2 to 3
同理对sw2进行操作;
进行子接口操作:
router]interface g0/0/0.1
[router-GigabitEthernet0/0/0.1]dot1q termination vid 2
[router-GigabitEthernet0/0/0.1]ip address 192.168.0.113 28
[router-GigabitEthernet0/0/0.1]arp broadcast enable
[router-GigabitEthernet0/0/0.1]q
[router]interface g0/0/0.2
[router-GigabitEthernet0/0/0.2]dot1q termination vid 3
[router-GigabitEthernet0/0/0.2]ip address 192.168.0. 225 28
[router-GigabitEthernet0/0/0.2]arp broadcast enable
配置dhcp
并分配到2.1 2.2 接口
检查pc1
配置静态路由;
配置浮动静态:[r1]ip route-static 100.100.100.0 24 13.1.1.2 preference 61
设置缺省路由:[r3]ip route-static 0.0.0.0 0 192.168.0.50
[r4]ip route-static 0.0.0.0 0 192.168.0.98
ping1.1.1.1
边栏推荐
猜你喜欢
网络安全学习(二十三)防火墙
网络安全学习(十四)IP协议
FreeRTOS thread safe and interrupt safe printf implementation
2022-7-8 Group 8 Gu Yujia's Outward Bound Training
The third "intelligence Cup" National College Students' IT skills competition (solution to group B of the preliminary competition)
经纬度及其与坐标系的转换
使用小技巧(一)
Solution to the problem of constantly popping up blank web pages when opening OrCAD capture CIS in cadence 17.2
7-1 懂的都懂
育才项目运行流程
随机推荐
重载和重写的区别
Allegro cannot display drill legend information when adding drill legend
Reasons and solutions for the whitening of computer shortcuts -- the lesson of blood woo woo
乐山师范程序设计大赛2020-D: 后缀语言【STL】
UltraEdit line break / tab settings
解决问题phpstudy导入数据库失败
Pearson correlation coefficient and code implementation (C language +matlab)
多基线干涉仪系统测向误差分析
Least square linear fitting and its code implementation (C language)
Panzer_Jack 的 个人博客成立日
2022-7-18 guyujia's study notes of group 8
“==”与equals的区别
学习笔记:猫眼top100电影信息爬取
equals和“==”的异同
Stm32f4 PWM capture (rising edge / falling edge / high and low level time) detailed explanation (including code)
网络安全学习(二十三)防火墙
Leetcode:13.罗马数字转整数【键值对映射】
[2022/7/17]科研整理
my homework 模板 latex版本
Qt字符串操作