cisco 联网问题

来源:百度知道 编辑:UC知道 时间:2024/06/11 23:31:34
我的路由是cisco2811,上面加了一块E1卡,现在要通过E1联接互联网怎么做
我路由器有E1接口。需要用E1接外网,fastethernet0/0接内网,内网IP是192.168.1.1。(供应商给的IP是动态的)如何进行配置。谢谢高手帮助。(cisco路由器)

对于shidong110的回答,我表示赞赏,但是这里运营商给的IP是动态的,不固定,只能使用PAT来实现上网,具体配置如下:
access-list 1 permit 192.168.1.0
ip nat inside source list 1 interface s1[连接外网借口的名字] overload
interface e1[外网接口的名字]
ip nat outside
ip address dhcp
exit
interface fa0/0
ip nat inside
ip address 192.168.1.1 255.255.255.0
exit

interface fastethernet0/0
ip nat inside
int e1
ip nat outside
access list 1 permit 192.168.0.1 0.0.0.16(可上网的IP断)
access list 1 deny any 
ip nat pool xxx 10.0.0.1 10.0.0.16(isp给的IP的起至尾)
ip nat static source list 1 pool xxx overload

NAT协议吧