标签:png log def sha image water dom stand 静态
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.254
标签:png log def sha image water dom stand 静态
原文地址:https://blog.51cto.com/14156658/2388950