本帖最后由 wal_cisco 于 2016-8-31 11:56 编辑
c3725路由器,里面有2块网卡:
f0/0:192.168.1.250
f0/1:192.168.100.1
主机的ip:
192.168.1.5
可见,主机和f0/0是在同一网段的(掩码都是:255.255.255.0)。此外,我是在 gns3 里对路由器进行模拟的,即在我的主机里进行测试(不是实体路由器)。当该路由器成功启动(在gns3里)后,主机(192.168.1.5)却 ping 不通 f0/0(192.168.1.250)。为何?
另,附上配置文件如下:
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
hostname ghh-r1
boot-start-marker
boot-end-marker
enable secret 5 $1$E.2N$6HDnuNoWYNF7jfimzBtV4/
aaa new-model
aaa authentication login default local
aaa authorization config-commands
aaa authorization exec default local
aaa session-id common
memory-size iomem 5
ip cef
ip domain name ghh.local
multilink bundle-name authenticated
username test password 7 08114D5D1A0E5505164A
username admin privilege 15 secret 5 $1$m9RP$WMBDl2prhisVK6bQ14Ujs0
archive
log config
hidekeys
ip ssh time-out 60
ip ssh authentication-retries 5
interface FastEthernet0/0
ip address 192.168.1.250 255.255.255.0
duplex auto
speed auto
interface FastEthernet0/1
ip address 192.168.100.1 255.255.255.0
duplex auto
speed auto
interface FastEthernet1/0
no ip address
shutdown
duplex auto
speed auto
ip default-gateway 192.168.100.1
ip default-network 192.168.1.0
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 192.168.1.1
ip http server
ip http authentication aaa
no ip http secure-server
snmp-server community public RO
snmp-server community secret RW
route-map priv permit 0
control-plane
line con 0
line aux 0
line vty 0 4
transport input ssh
end