Em có con router Cisco 891F. ISP VNPT modem, cấu hình bridge. Rồi cắm vào WAN GE8 cisco để quay PPoE.
Em cấu hình như thế này, client nhận IP nhưng không ra net được. Sư phụ xem giúp em xem lỗi ở chỗ nào ạ ?
hostname Router891F
!
boot-start-marker
boot-end-marker
!
aqm-register-fnf
!
enable password AAAaaaAAA
!
no aaa new-model
!
ip dhcp excluded-address 192.168.1.1 192.168.1.19
ip dhcp excluded-address 192.168.1.201 192.168.1.254
!
ip dhcp pool ippool
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 8.8.8.8 8.8.4.4
!
no ip domain lookup
ip cef
no ipv6 cef
!
multilink bundle-name authenticated
!
interface BRI0
no ip address
encapsulation hdlc
shutdown
isdn termination multidrop
!
interface FastEthernet0
no ip address
shutdown
duplex auto
speed auto
!
interface GigabitEthernet0
no shut
spanning-tree portfast
!
interface GigabitEthernet1
no shut
spanning-tree portfast
!
interface GigabitEthernet2
no shut
spanning-tree portfast
!
interface GigabitEthernet3
no shut
spanning-tree portfast
!
interface GigabitEthernet4
no shut
spanning-tree portfast
!
interface GigabitEthernet5
no shut
spanning-tree portfast
!
interface GigabitEthernet6
no shut
spanning-tree portfast
!
interface GigabitEthernet7
no shut
spanning-tree portfast
!
interface GigabitEthernet8
no shut
no ip address
ip nat outside
ip virtual-reassembly in
duplex auto
speed auto
pppoe enable
pppoe-client dial-pool-number 1
!
interface Vlan1
ip address 192.168.1.1 255.255.255.0
ip nat inside
ip virtual-reassembly in
!
interface Async3
no ip address
encapsulation slip
!
interface Dialer1
ip address negotiated
ip mtu 1492
ip virtual-reassembly in
encapsulation ppp
dialer pool 1
dialer-group 1
ppp authentication pap callin
ppp pap sent-username AAAaaaAAA password 0 1234567890
ppp ipcp dns request
!
ip forward-protocol nd
ip http server
ip http secure-server
!
ip route 0.0.0.0 0.0.0.0 dhcp
ip nat inside source list 1 interface GigabitEthernet8 overload
ip nat inside source static tcp 192.168.1.250 8899 int Gi8 8899
ip nat inside source static tcp 192.168.1.250 8181 int Gi8 8181
ip nat inside source static upd 192.168.1.250 8899 int Gi8 8899
ip nat inside source static upd 192.168.1.250 8181 int Gi8 8181
!
dialer-list 1 protocol ip permit
no cdp run
!
access-list 1 permit 192.168.1.0 0.0.0.255
!
control-plane
!
mgcp behavior rsip-range tgcp-only
mgcp behavior comedia-role none
mgcp behavior comedia-check-media-src disable
mgcp behavior comedia-sdp-force disable
!
mgcp profile default
!
line con 0
no modem enable
line aux 0
line 3
modem InOut
speed 115200
flowcontrol hardware
line vty 0 4
password 123abc456
login
transport input all
!
scheduler allocate 20000 1000
!
end
Em cấu hình như thế này, client nhận IP nhưng không ra net được. Sư phụ xem giúp em xem lỗi ở chỗ nào ạ ?
hostname Router891F
!
boot-start-marker
boot-end-marker
!
aqm-register-fnf
!
enable password AAAaaaAAA
!
no aaa new-model
!
ip dhcp excluded-address 192.168.1.1 192.168.1.19
ip dhcp excluded-address 192.168.1.201 192.168.1.254
!
ip dhcp pool ippool
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 8.8.8.8 8.8.4.4
!
no ip domain lookup
ip cef
no ipv6 cef
!
multilink bundle-name authenticated
!
interface BRI0
no ip address
encapsulation hdlc
shutdown
isdn termination multidrop
!
interface FastEthernet0
no ip address
shutdown
duplex auto
speed auto
!
interface GigabitEthernet0
no shut
spanning-tree portfast
!
interface GigabitEthernet1
no shut
spanning-tree portfast
!
interface GigabitEthernet2
no shut
spanning-tree portfast
!
interface GigabitEthernet3
no shut
spanning-tree portfast
!
interface GigabitEthernet4
no shut
spanning-tree portfast
!
interface GigabitEthernet5
no shut
spanning-tree portfast
!
interface GigabitEthernet6
no shut
spanning-tree portfast
!
interface GigabitEthernet7
no shut
spanning-tree portfast
!
interface GigabitEthernet8
no shut
no ip address
ip nat outside
ip virtual-reassembly in
duplex auto
speed auto
pppoe enable
pppoe-client dial-pool-number 1
!
interface Vlan1
ip address 192.168.1.1 255.255.255.0
ip nat inside
ip virtual-reassembly in
!
interface Async3
no ip address
encapsulation slip
!
interface Dialer1
ip address negotiated
ip mtu 1492
ip virtual-reassembly in
encapsulation ppp
dialer pool 1
dialer-group 1
ppp authentication pap callin
ppp pap sent-username AAAaaaAAA password 0 1234567890
ppp ipcp dns request
!
ip forward-protocol nd
ip http server
ip http secure-server
!
ip route 0.0.0.0 0.0.0.0 dhcp
ip nat inside source list 1 interface GigabitEthernet8 overload
ip nat inside source static tcp 192.168.1.250 8899 int Gi8 8899
ip nat inside source static tcp 192.168.1.250 8181 int Gi8 8181
ip nat inside source static upd 192.168.1.250 8899 int Gi8 8899
ip nat inside source static upd 192.168.1.250 8181 int Gi8 8181
!
dialer-list 1 protocol ip permit
no cdp run
!
access-list 1 permit 192.168.1.0 0.0.0.255
!
control-plane
!
mgcp behavior rsip-range tgcp-only
mgcp behavior comedia-role none
mgcp behavior comedia-check-media-src disable
mgcp behavior comedia-sdp-force disable
!
mgcp profile default
!
line con 0
no modem enable
line aux 0
line 3
modem InOut
speed 115200
flowcontrol hardware
line vty 0 4
password 123abc456
login
transport input all
!
scheduler allocate 20000 1000
!
end
Comment