配置交换机管理IP
配置交换机管理IP3.1 问题配置交换机管理IP为192.168.1.1 ,默认网关为192.168.1.1003.2 方案网络拓扑图如图-3图-33.3 步骤实现此案例需要按照如下步骤进行步骤一:配置交换机接口模式1)配置路由器R1的接口IP作为192.168....
·
配置交换机管理IP
3.1 问题
配置交换机管理IP为192.168.1.1 ,默认网关为192.168.1.100
3.2 方案
网络拓扑图如图-3
图-3
3.3 步骤
实现此案例需要按照如下步骤进行
步骤一:配置交换机接口模式
1)配置路由器R1的接口IP作为192.168.1.0网段的网关地址
Router>enable
Router#configure terminal
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip address 192.168.1.100
Router(config-if)#ip address 192.168.1.100 255.255.255.0
Router(config-if)#no shutdown
2)配置交换机管理IP和网关地址
- Switch(config)#interface vlan 1
- Switch(config-if)#ip address 192.168.1.1 255.255.255.0
- Switch(config-if)#no shutdown
- Switch(config-if)#exit
- Switch(config)#ip default-gateway 192.168.1.100
3)用ping命令进行测试
- PC>ipconfig
- FastEthernet0 Connection:(default port)
- Link-local IPv6 Address.........: FE80::200:CFF:FEE4:90B0
- IP Address......................: 192.168.1.2
- Subnet Mask.....................: 255.255.255.0
- Default Gateway.................: 192.168.1.100
- PC>ping 192.168.1.1
- Pinging 192.168.1.1 with 32 bytes of data:
- Request timed out.
- Reply from 192.168.1.1: bytes=32 time=0ms TTL=255
- Reply from 192.168.1.1: bytes=32 time=3ms TTL=255
- Reply from 192.168.1.1: bytes=32 time=0ms TTL=255
- Ping statistics for 192.168.1.1:
- Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
- Approximate round trip times in milli-seconds:
- Minimum = 0ms, Maximum = 3ms, Average = 1ms
- PC>ping 192.168.1.100
- Pinging 192.168.1.100 with 32 bytes of data:
- Reply from 192.168.1.100: bytes=32 time=50ms TTL=255
- Reply from 192.168.1.100: bytes=32 time=0ms TTL=255
- Reply from 192.168.1.100: bytes=32 time=0ms TTL=255
- Reply from 192.168.1.100: bytes=32 time=0ms TTL=255
- Ping statistics for 192.168.1.100:
- Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
- Approximate round trip times in milli-seconds:
- Minimum = 0ms, Maximum = 50ms, Average = 12ms
更多推荐
已为社区贡献1条内容
所有评论(0)