username cisco password 0 cisco ! bba-group pppoe global virtual-template 1 ! ! interface GigabitEthernet0/0 description ### To PPPoE Client ### ip address 100.100.100.1 255.255.255.0 duplex auto speed auto media-type rj45 pppoe enable group global no shut ! interface GigabitEthernet0/1 description ### To ISP ### ip address 192.168.2.11 255.255.255.0 duplex auto speed auto media-type rj45 no shut ! ! interface Virtual-Template1 description ### PPPOE GROUP ### mtu 1492 ip unnumbered GigabitEthernet0/0 peer default ip address pool POOL ppp authentication pap ! ip local pool POOL 192.168.2.100 192.168.2.200 // 인터넷 가능한 IP i no ip http server no ip http secure-server ! ip route 0.0.0.0 0.0.0.0 192.168.2.1 !
2. PPPoE Client
interface GigabitEthernet0/0 description ### To PPPoE Server ### ip address 100.100.100.2 255.255.255.0 duplex auto speed auto media-type rj45 pppoe enable pppoe-client dial-pool-number 1 no shut ! ! interface Dialer1 ip address negotiated ip mtu 1492 ip nat outside ip virtual-reassembly in encapsulation ppp ip tcp adjust-mss 1452 dialer pool 1 ppp authentication pap callin ppp pap sent-username cisco password 0 cisco ! ip route 0.0.0.0 0.0.0.0 Dialer1
### DHCP & NAT ### ip dhcp excluded-address 192.168.100.1 192.168.100.10 ! ip dhcp pool LAN network 192.168.100.0 255.255.255.0 default-router 192.168.100.1 dns-server 8.8.8.8 ! ! interface GigabitEthernet0/1 ip address 192.168.100.1 255.255.255.0 ip nat inside ip virtual-reassembly in ! ip nat inside source list 100 interface Dialer1 overload ! ip access-list extended NAT-POOL permit ip 192.168.100.0 0.0.0.255 any !