配置路由器及交换机配置网关

路由器

interface GigabitEthernet0/0/0 

ip address 192.168.1.1 24  \\配置ip地址和子网掩码,可做网关或路由

交换机

interface Vlanif 10

ip address 192.168.10.1 24      \\配置vlan的网关和子网掩码

24也可以写成255.255.255.0

猜你喜欢

转载自www.cnblogs.com/stone-ocean/p/11954999.html