- 论坛徽章:
- 0
|
10可用积分
刚刚接触路由器,想简单的配置路由器共享上网,路由器一台(cisco2600,两个以太网口),局域网网段为192.168.1.0,外网帐号为:202.112.149.51 255.255.255.0 202.112.149.2
我的局域网pc机的ip为:192.168.1.102 255.255.255.0 192.168.1.1 。
路由器配置为:fastethernet0/0:202.112.149.51 255.255.255.0 ; fastethernet0/1:192.168.1.1 255.255.255.0 路由器的默认网关:ip default-gateway:202.112.149.2
现在的问题是:我的pc机ping 192.168.1.1 和 202.112.149.51均可ping通,但是ping 202.112.149.2网关ping不通,不能上网。(由于学校ip和mac绑定,我的路由器上的fastethernet0/0 mac已改)
看看我得路由器的命令结果吧:
1、sh conf
Using 793 out of 29688 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
service password-encryption
!
hostname R1
!
enable secret 5 $1$z57n$uOEQN9ggvyjPep586coYw0
!
ip subnet-zero
no ip routing
!
!
interface FastEthernet0/0
mac-address 001c.2300.d957
ip address 202.112.149.51 255.255.255.0
no ip route-cache
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 192.168.1.1 255.255.255.0
no ip route-cache
duplex auto
speed auto
!
ip default-gateway 202.112.149.2
ip classless
ip http server
ip pim bidir-enable
!
!
snmp-server engineID local 800000090300000D29020000
snmp-server community public RO
snmp-server community private RW
!
line con 0
exec-timeout 15 0
password 7 1511021F0725
login
line aux 0
line vty 0 4
password 7 094F471A1A0A
login
!
!
end
2、sh ip route
Default gateway is 202.112.149.2
Host Gateway Last Use Total Uses Interface
ICMP redirect cache is empty
请高手指点,谢谢各位了!! |
最佳答案
查看完整内容
ip route 0.0.0.0 0.0.0.0 202.112.149.2access-list 1 per 192.168.1.0 0.0.0.255ip nat inside source list 1 int fa 0/0 overint fa 0/0ip nat outint fa 0/1ip nat in
|