- 论坛徽章:
- 0
|
外网线直接连接到FE0/1口,FE0/0连接内网, 希望能对大家有帮助! ^!^
User Access Verification
Password:
lxf>en
Password:
lxf#show run
Building configuration...
Current configuration : 1381 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname lxf
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$7KG3$154******************.
!
no aaa new-model
!
resource policy
!
ip subnet-zero
!
!
ip cef
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.0.1 192.168.0.19
!
ip dhcp pool kaixin
network 192.168.0.0 255.255.255.0
domain-name luxiaofeng.com
dns-server 192.168.0.1 218.246.32.17
netbios-name-server 192.168.0.1
netbios-node-type h-node
default-router 192.168.0.1
lease 8
!
!
no ip domain lookup
!
!
!
!
interface FastEthernet0/0
ip address 192.168.0.1 255.255.255.0
ip nat inside
ip nat enable
ip tcp adjust-mss 1452
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
pppoe enable
pppoe-client dial-pool-number 1
no keepalive
!
interface Dialer0
mtu 1492
ip address negotiated
ip nat outside
ip nat enable
encapsulation ppp
dialer pool 1
ppp pap sent-username kaixin password 0 kaixin
!
ip classless
ip route 0.0.0.0 0.0.0.0 Dialer0
!
ip http server
ip nat source list 1 interface Dialer0 overload
!
access-list 1 permit 192.168.0.0 0.0.0.255
!
control-plane
!
!
line con 0
logging synchronous
line aux 0
line vty 0 4
password kaixin
login
!
scheduler allocate 20000 1000
!
end
lxf#
lxf#
lxf#
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/15425/showart_129706.html |
|