蓝森林首页 | 返回主页 | 本站地图 | 站内搜索 | 联系信箱 |
 您目前的位置:首页 > 自由软件 > 技术交流 > 网络通讯


    

蓝森林 http://www.lslnet.com 2006年7月26日 13:28

cisco 1721动态地址以太网出口配置


现在网络的结构是这样的:


本地从电信申请了一条10M的光纤,到本地后通过协议转换器转成RJ45口,连接到我的CISCO 1721的以太网口上(是自配的WIC-1ENET的10M以太网模块)。同时通过路由器的另一个10/100M 口接到本地交换机。但是它申请的这条线路是动态的IP地址。


请问:此台路由该怎么配置。在此先谢谢各位同仁了,因为比较急,还请各位帮忙尽快解决。

!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
!
!
!
ip cef
!
!
!
interface Ethernet0
ip address dhcp
ip nat outside
half-duplex
!
interface FastEthernet0
ip address 192.168.10.3 255.255.255.0
ip nat inside
speed auto
!
ip nat inside source list 1 interface Ethernet0 overload
ip classless
ip route 0.0.0.0 0.0.0.0 Ethernet0
no ip http server
!
access-list 1 permit 192.168.10.0 0.0.0.255
!
line con 0
line aux 0
line vty 0 4
!
!
这是我的配置。

Router#show int e 0
Ethernet0 is up, line protocol is up
Hardware is PQUICC Ethernet, address is 0004.dc0c.b5d6 (bia 0004.dc0c.b5d6)
Internet address is 218.94.25.252/27
MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec,
reliability 180/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Half-duplex, 10BaseT
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:42:44, output 00:00:06, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
215 packets input, 13892 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
80 input errors, 0 CRC, 0 frame, 0 overrun, 80 ignored
0 input packets with dribble condition detected
79291 packets output, 4772052 bytes, 0 underruns
80 output errors, 0 collisions, 1 interface resets
0 babbles, 0 late collision, 0 deferred
Router#show int f 0
FastEthernet0 is up, line protocol is up
Hardware is PQUICC_FEC, address is 000f.9067.4321 (bia 000f.9067.4321)
Internet address is 192.168.10.3/24
MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, 100Mb/s, 100BaseTX/FX
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:02, output 00:00:05, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 1000 bits/sec, 1 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
273883 packets input, 17918162 bytes
Received 51073 broadcasts, 0 runts, 0 giants, 0 throttles
2 input errors, 0 CRC, 0 frame, 2 overrun, 0 ignored
0 watchdog
0 input packets with dribble condition detected
645 packets output, 57595 bytes, 0 underruns
3 output errors, 0 collisions, 2 interface resets

Router#show ip nat translations
Pro Inside global Inside local Outside local Outside global
udp 218.94.25.252:3010 192.168.0.22:3010 192.168.0.1:1900 192.168.0.1:1900
udp 218.94.25.252:1943 192.168.0.25:1943 61.152.145.230:1302 61.152.145.230:130
2
udp 218.94.25.252:1055 192.168.0.2:1055 212.118.243.118:53 212.118.243.118:53
udp 218.94.25.252:3142 192.168.0.60:3142 192.168.0.1:1900 192.168.0.1:1900
icmp 218.94.25.252:768 192.168.10.10:768 61.172.201.9:768 61.172.201.9:768
tcp 218.94.25.252:38045 192.168.10.10:38045 192.168.23.0:135 192.168.23.0:135
icmp 218.94.25.252:1900 192.168.10.10:1900 192.168.0.80:40072 192.168.0.80:40072

udp 218.94.25.252:1942 192.168.0.25:1942 61.152.145.250:1606 61.152.145.250:160
6
udp 218.94.25.252:1055 192.168.0.2:1055 216.52.184.230:53 216.52.184.230:53
udp 218.94.25.252:1055 192.168.0.2:1055 64.74.96.242:53 64.74.96.242:53
tcp 218.94.25.252:42946 192.168.10.10:42946 192.168.29.0:135 192.168.29.0:135
tcp 218.94.25.252:42961 192.168.10.10:42961 192.168.13.0:135 192.168.13.0:135
tcp 218.94.25.252:46298 192.168.10.10:46298 192.168.8.0:135 192.168.8.0:135
tcp 218.94.25.252:42768 192.168.10.10:42768 192.168.246.0:135 192.168.246.0:135
tcp 218.94.25.252:45117 192.168.10.10:45117 192.168.101.0:135 192.168.101.0:135
tcp 218.94.25.252:46418 192.168.10.10:46418 192.168.24.0:135 192.168.24.0:135

现在只是能PING通内网,和外网自动获取的IP 地址。
不能上网,请问问题出在哪,急,请大家多多帮忙。

最好是show ip route看看路由表。看能否ping出外网。

兄弟们帮帮忙啊。我都急死了

问题应该从两部入手:
1、查看一下你的路由表,是否有对外的默认路由;
2、查看一下的NAT转换是否生效,
你可以在你的路由器上添加一个DNS,测试一下本机上网是否有问题;

上面的,我都做了,可还是不行,也是对的
现在是,有找到对端的地址,但是PING 不通

在楼主ACL 中的配置错误吧?!

Ethernet0 is up, line protocol is up
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec


没流量阿。

在路由器上PING对端,看能否PING通,
或先找台PC试试,看线路是否正常。

外口:
Router#show int e 0
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
215 packets input, 13892 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
80 input errors, 0 CRC, 0 frame, 0 overrun, 80 ignored
0 input packets with dribble condition detected
79291 packets output, 4772052 bytes, 0 underruns
80 output errors, 0 collisions, 1 interface resets
0 babbles, 0 late collision, 0 deferred

内口:
Router#show int f 0
5 minute input rate 1000 bits/sec, 1 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
273883 packets input, 17918162 bytes
Received 51073 broadcasts, 0 runts, 0 giants, 0 throttles
2 input errors, 0 CRC, 0 frame, 2 overrun, 0 ignored
0 watchdog
0 input packets with dribble condition detected
645 packets output, 57595 bytes, 0 underruns
3 output errors, 0 collisions, 2 interface resets
从内外口的情况来看,内网口只能进,不能出,而外网口根本就没数据。是不是接口有问题啊,有可能是双工或速率问题吗。(内口是10M,外口是10/100M的)
但是,3 output errors,从这个来看好像也是线路有问题啊,是不是它们导至的线路不通啊,有没有好的解决方法啊


Copyright © 1999-2000 LSLNET.COM. All rights reserved. 蓝森林网站 版权所有。 E-mail : webmaster@lslnet.com