路由器+WIC-1ADSL的配置(静态和动态)
2009-05-13 14:04:12来源:未知 阅读 ()
1.动态ip:
router#sho run
Building configuration...
Current configuration : 5285 bytes
!
version 12.1
no service single-slot-reload-enable
no service pad
service
timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname router
!
logging rate-limit console 10 except errors
enable secret 5 $1$K3L0$0rhn4PtxpWL2hqzIWDk2M1
!
username zhu password 0 123
username guest password 0 guest
clock timezone Shanghai 8
mmi polling-interval 60
mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
ip subnet-zero
no ip finger
no ip domain-lookup
ip name-server 202.96.199.133
ip dhcp excluded-address 192.168.0.254
!
ip dhcp pool DHCPPool
import all
network 192.168.0.0 255.255.255.0
default-router 192.168.0.254
dns-server 202.96.199.133
!
no ip dhcp-client network-discovery
vpdn enable
no vpdn logging
!
vpdn-group 1
request-dialin
protocol pppoe
!
!
!
!
interface Ethernet0
ip address 192.168.2.254 255.255.255.0 secondary
ip address 192.168.0.254 255.255.255.0
ip access-group 188 in
ip accounting output-packets
ip adjust-mss 1450
ip nat inside
hold-queue 32 in
!
interface ATM0
bandwidth 512
no ip address
no atm ilmi-keepalive
pvc 0/16 ilmi
!
pvc 8/81
protocol pppoe
pppoe-client dial-pool-number 1
!
bundle-enable
dsl operating-mode auto
hold-queue 224 in
!
!
!
interface Dialer1
bandwidth 512
ip address negotiated
ip mtu 1492
ip nat outside
encapsulation ppp
dialer pool 1
dialer remote-name redback
dialer-group 1
ppp authentication pap callin
ppp pap sent-username vip password 7 1504021C
!
ip classless
ip route 0.0.0.0 0.0.0.0 Dialer1
ip http server
!
ip nat inside source list 1 interface Dialer1 overload
dialer-list 1 protocol ip list 1
line con 0
exec-timeout 120 0
logging synchronous
transport input none
stopbits 1
line vty 0 4
exec-timeout 30 0
password xxx
login
length 15
!
!
end
2.静态的ip地址就简单了
int atm0/0
ip address 1.1.1.2 255.255.255.252
dsl operate auto
pvc 8/35
encap aalsnap5
!
ip route 0.0.0.0 0.0.0.0 1.1.1.1
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/4206/showart_697580.html
标签:
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
- 有没有FreeBSD内核配置文件的中文版解释文档呢? 2009-05-13
- freebsd和linux下添加IP地址和静态路由 2009-05-13
- freebsd的目录结构 2009-05-13
- nfs配置 2009-05-13
- 【转载】freebsd sysctl.conf配置说明 2009-05-13
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash