hostname WA1512 ! username admin password plain admin administrator ! http-username admin password plain admin administrator ! ppp profile pppoeprof authentication username user@example.com authentication password plain example ! ip dhcp-server enable ip dhcp-server profile default default-gateway auto dns-server auto subnet-mask auto ! interface GigaEthernet0.0 no ip address encapsulation PPPoE0 no shutdown ! interface GigaEthernet1.0 ip address 192.168.1.200/24 ip dhcp-server binding default no shutdown ! interface PPPoE0 ip address ipcp ip tcp adjust-mss auto ppp profile pppoeprof auto-connect ip napt enable no shutdown ! interface MobileEthernet0.0 ip address dhcp ip napt enable mobile id IP example.jp mobile username user@example.com mobile password plain example auto-connect no shutdown ! ip route default PPPoE0 ! proxy-dns ip enable proxy-dns server default PPPoE0 ipcp ! network-monitor monitor1 event ip unreach-host 8.8.8.8 interface PPPoE0 source GigaEthernet1.0 action 10 route-del 0.0.0.0/0 PPPoE0 route-add 0.0.0.0/0 dhcp MobileEthernet0.0 action 20 pdns-server-del PPPoE0 ipcp action 30 pdns-server-add MobileEthernet0.0 dhcp action 40 BAK-LED-on ! monitor-group monitor1 enable !