1. Dynamic 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 TB t 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.20.
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.20.
!
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
Bandwidx 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
Bandwidx 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-Time out 120 0
Logging synchronous
Transport input none
Stopbits 1
Line vty 0 4
Exec-timeout 30 0
Password xxx
Login
Length 15
!
!
End
2. static IP addresses are simple.
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
Article entry: csh responsible editor: csh