实验环境描述:
本公司为了保证企业网关的稳定性,采用双线接入实现容错功能,默认转发数据从SW1-3L,当SW1-3L发生故障SW2-3L转发数据。
推荐步骤:数据库
VLAN10-PC1(config)#no ip routing
VLAN10-PC1(config)#interface fastEthernet 0/0
VLAN10-PC1(config-if)#no shutdown
VLAN10-PC1(config)#interface fastEthernet 0/0
VLAN10-PC1(config-if)#ip address 192.168.10.1 255.255.255.0
VLAN10-PC1(config-if)#no shutdown
VLAN10-PC1(config-if)#exit
VLAN10-PC1(config)#ip default-gateway 192.168.10.254
在vlan10-pc1关闭路由功能,激活0/0接口,配置IP地址为192.168.10.1 网关为192.168.10.254
VLAN20-PC1(config)#no ip routing
VLAN20-PC1(config)#interface fastEthernet 0/0
VLAN20-PC1(config-if)#no shutdown
VLAN20-PC1(config-if)#exit
VLAN20-PC1(config)#interface fastEthernet 0/0
VLAN20-PC1(config-if)#ip address 192.168.20.1 255.255.255.0
VLAN20-PC1(config-if)#no shutdown
VLAN20-PC1(config-if)#exit
VLAN20-PC1(config)#ip default-gateway 192.168.20.254
在vlan20-pc1关闭路由功能,激活0/0接口,配置IP地址为192.168.20.1 网关为192.168.20.254
VLAN10-PC2(config)#no ip routing
VLAN10-PC2(config)#interface fastEthernet 0/0
VLAN10-PC2(config-if)#no shutdown
VLAN10-PC2(config-if)#exit
VLAN10-PC2(config)#interface fastEthernet 0/0
VLAN10-PC2(config-if)#ip address 192.168.10.2 255.255.255.0
VLAN10-PC2(config-if)#no shutdown
VLAN10-PC2(config-if)#exit
VLAN10-PC2(config)#ip default-gateway 192.168.10.254
在vlan10-pc2关闭路由功能,激活0/0接口,配置IP地址为192.168.10.2 网关为192.168.10.254
VLAN20-PC2(config)#no ip routing
VLAN20-PC2(config)#interface fastEthernet 0/0
VLAN20-PC2(config-if)#no shutdown
VLAN20-PC2(config-if)#exit
VLAN20-PC2(config)#interface fastEthernet 0/0
VLAN20-PC2(config-if)#ip address 192.168.20.2 255.255.255.0
VLAN20-PC2(config-if)#no shutdown
VLAN20-PC2(config-if)#exit
VLAN20-PC2(config)#ip default-gateway 192.168.20.254
在vlan20-pc2关闭路由功能,激活0/0接口,配置IP地址为192.168.20.2 网关为192.168.20.254dom