单臂路由与静态路由项目实例分析
本实例为大家详细讲解单臂路由与静态路由项目实例分析及应用,实验拓扑及网络规划如下图:
要求如下:
1.vlan10、vlan20、vlan30、vlan40的网关在SW1上面;
2.R上面做单臂路由;
3.实现所有PC机网络互通。
第一步:项目配置左边网络SW1、SW2和SW3命令如下:
SW1
vlan batch 10 20 30 40
interface Vlanif1
ip address 192.168.100.1 255.255.255.0
interface Vlanif10
ip address 192.168.10.254 255.255.255.0
interface Vlanif20
ip address 192.168.20.254 255.255.255.0
interface Vlanif30
ip address 192.168.30.254 255.255.255.0
interface Vlanif40
ip address 192.168.40.254 255.255.255.0
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass all
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass all
ip route-static 0.0.0.0 0.0.0.0 192.168.100.2
SW2
vlan batch 10 20 30 40
interface Ethernet0/0/1
port link-type access
port default vlan 10
interface Ethernet0/0/2
port link-type access
port default vlan 20
interface Ethernet0/0/3
port link-type trunk
port trunk allow-pass all
SW3
vlan batch 10 20 30 40
interface Ethernet0/0/1
port link-type access
port default vlan 30
interface Ethernet0/0/2
port link-type access
port default vlan 40
interface Ethernet0/0/3
port link-type trunk
port trunk allow-pass all
第二步:R1配置基本网络和静态路由如下
R1
interface GigabitEthernet0/0/0
ip address 192.168.100.2 255.255.255.0
interface GigabitEthernet0/0/1
ip address 192.168.200.1 255.255.255.0
ip route-static 192.168.10.0 255.255.255.0 192.168.100.1
ip route-static 192.168.20.0 255.255.255.0 192.168.100.1
ip route-static 192.168.30.0 255.255.255.0 192.168.100.1
ip route-static 192.168.40.0 255.255.255.0 192.168.100.1
ip route-static 192.168.50.0 255.255.255.0 192.168.200.2
ip route-static 192.168.60.0 255.255.255.0 192.168.200.2
第三步,在R2上面配置基本网络单臂路由和缺省路由,如下:
R2
interface GigabitEthernet0/0/0.1
dot1q termination vid 50
ip address 192.168.50.254 255.255.255.0
arp broadcast enable
interface GigabitEthernet0/0/0.2
dot1q termination vid 60
ip address 192.168.60.254 255.255.255.0
arp broadcast enable
interface GigabitEthernet0/0/1
ip address 192.168.200.2 255.255.255.0
ip route-static 0.0.0.0 0.0.0.0 192.168.200.1
第四步:配置右侧SW5和SW6基本网络
SW5
vlan batch 50 60
interface Ethernet0/0/1
port link-type access
port default vlan 50
interface Ethernet0/0/2
port link-type trunk
port trunk allow-pass all
interface Ethernet0/0/3
port link-type trunk
port trunk allow-pass all
SW6
vlan batch 50 60
interface Ethernet0/0/1
port link-type access
port default vlan 60
interface Ethernet0/0/2
port link-type trunk
port trunk allow-pass all
最后,测试和验证网络连通性
实验配置完成!!!!!!
- 软件项目管理理论及实例分析
- 寻找技术或城市渠道合作、项目之实例分析
- 将原生安卓项目封装为cordova插件实例分析
- 实例分析:「XX社区团购」项目之从0到1
- nat、路由聚合、单臂路由实例分析
- jquery选择器项目实例分析
- jquery选择器项目实例分析
- 【面向对象课程项目:纸牌】Java实例学习(一):优秀源码的分析
- 分析Android项目中各个gradle文件,简单Groovy语法、实例
- 索引原理及项目中如何使用索引实例分析
- jQuery 选择器项目实例分析及实现代码
- 安卓PopupWindow使用详解与源码分析(附项目实例)
- THINKPHP项目开发中的日志记录实例分析
- Jmeter自定义脚本实例(以项目中阿里云上传接口为例子的需求分析以及实现)
- 索引原理及项目中如何使用索引实例分析
- Oracle分析函数的项目实践实例
- zookeeper项目实例分析
- H3C项目实例分析
- jQuery 选择器项目实例分析及实现代码
- android项目编译过程---详细分析与实例