常见综合实验一--PPPOE+单臂路由+DHCP

PPPOE+单臂路由+DHCP
 
 
pppoe-server配置:
enable
conf t
host pppoe-server
no ip domain-lo
lin con 0
exec-ti 0 0
logg syn
exit
vpdn enable
no vpdn logging (可去掉)
vpdn-group ADSL
accept-dialin
protocol pppoe
virtual-template 1
exit
pppoe limit per-mac 200
exit
int f1/0
ip add 1.1.1.1 255.255.255.255 (可以不设置IP)
no shutdown
pppoe enable
no cdp enable  (可去掉)
int virtual-template 1
ip add 172.16.1.1 255.255.255.0
peer default ip add pool earth
ppp authentication chap pap callin
ppp ipcp dns 202.2.2.2
exit
ip local pool earth 172.16.1.11 172.16.1.254
no cdp run  (可去掉)
username cisco password 0 cisco
end

 
pppoe-client配置:
enable
conf t
host pppoe-client
no ip domain-lo
lin con 0
exec-ti 0 0
logg syn
exit
vpdn enable
int f0/0
no shutdown
ip nat inside
int f0/0.10
 encapsulation dot1Q 10
ip add 192.168.10.1 255.255.255.0
ip nat inside
int f0/0.20
 encapsulation dot1Q 20
ip add 192.168.20.1 255.255.255.0
ip nat inside
int f0/0.30
 encapsulation dot1Q 30
ip add 192.168.30.1 255.255.255.0
ip nat inside
int f1/0
no ip add
no shutdown
pppoe enable
pppoe-client dial-pool-number 100
int dialer 0
ip add negotiated
ip mtu 1492
no shutdown
encapsulation ppp
ppp authentication chap pap callin
ppp chap hostname cisco
ppp chap password cisco
ppp pap sent-username cisco password cisco
dialer pool 100
ppp ipcp dns request
ip nat outside
exit
access-list 1 permit 192.168.10.0 0.0.0.255
access-list 1 permit 192.168.30.0 0.0.0.255
ip nat inside source list 1 int dialer0 overload
ip dhcp pool vlan10
network 192.168.10.0 255.255.255.0
default-router 192.168.10.1
dns-server 202.2.2.2
lease 100
exit
ip dhcp pool vlan20
network 192.168.20.0 255.255.255.0
default-router 192.168.20.1
dns-server 202.2.2.2
lease 100
exit
ip dhcp pool vlan30
network 192.168.30.0 255.255.255.0
default-router 192.168.30.1
dns-server 202.2.2.2
lease 100
exit
ip dhcp excluded-add 192.168.10.1
ip dhcp excluded-add 192.168.20.1
ip dhcp excluded-add 192.168.30.1
ip route 0.0.0.0 0.0.0.0 dialer 0
end
 
SW配置:
enable
vlan database
vlan 10
vlan 20
vlan 30
vtp server
vtp domain ccnp
exit
conf t
int f1/4
switchport mode trunk
int f1/1
switchport mode access
switchport access vlan 10
int f1/2
switchport mode access
switchport access vlan 20
int f1/3
switchport mode access
switchport access vlan 30
end
 
VLAN30-PC获取地址:
Ethernet NIC
        Physical Address. . . . . . . . . : 00-30-18-AD-93-C9
        Dhcp Enabled. . . . . . . . . . . : Yes
        Autoconfiguration Enabled . . . . : Yes
        IP Address. . . . . . . . . . . . : 192.168.30.2
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 192.168.30.1
        DHCP Server . . . . . . . . . . . : 192.168.30.1
        DNS Servers . . . . . . . . . . . : 202.2.2.2
        Lease Obtained. . . . . . . . . . : 2009年10月5日 12:46:45
        Lease Expires . . . . . . . . . . : 2010年1月13日 12:46:45
 
 
----------------------------------------------------- DY拓扑------------------------------------------------------------------------------------
autostart = False
ghostios = True
sparsemem = True
[localhost]
workingdir = E:\CCNP\Temp

[[3640]]
image = E:\CCNP\IOS\C3640-JK.BIN
ram = 128
slot0 = NM-1FE-TX
slot1 = NM-1FE-TX
confreg = 0x2142
 
[[2691]]
image = E:\CCNP\IOS\c2691-advsecurityk9-mz.124-11.T2.bin
ram = 128
slot1 = NM-16ESW
confreg = 0x2142

[[router server]]
model = 3640
console = 2001
f1/0 = client f1/0
confreg = 0x2142
 
[[router client]]
model = 3640
console = 2002
confreg = 0x2142
 
[[router sw]]
model = 2691
console = 3001
f1/4 = client f0/0
f1/3 = NIO_gen_eth:\Device\NPF_{14F0F1BB-28EB-45CC-866C-8FE7E70A35AB}
confreg = 0x2142
 

[[router pc1]]
model = 3640
console = 2011
f0/0 = sw f1/1
confreg = 0x2142

[[router pc2]]
model = 3640
console = 2012
f0/0 = sw f1/2
confreg = 0x2142
---------------------------------------------------------------------------------------------------------------------------------------------
附加idlepc值
C2691-AD.BIN = 0x61313d60
C3660-JS.BIN = 0x604e4868
unzip-c7200-advsecurityk9-mz.124-11.T.bin = 0x6176232c
C7200-JK.BIN = 0x6083c834
C3640-JK.BIN = 0x603e27d0
c2691-advsecurityk9-mz.124-11.T2.bin = 0x60c1054c

你可能感兴趣的:(职场,休闲,pppoe)