○
○
○
○
○
3 — Configuring Your Router
3-12
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
3.3.4
Configuring the Basics: Step 4 - Configuring the Routing
Table
i)
Adding a Default route through a Gateway
(No default route is required for PPPoA and PPPoE line protocols.)
Assuming the WAN Gateway given by your ADSL Service Provider is
202.166.29.2
:
ip route add default 0.0.0.0
202.166.29.2
0:0:0:0
ii)
Dynamic Routing
If dynamic routing is not required, it is recommended to disable this feature
to reduce unnecessary traffic:
ip rip accept all none
ip rip send all none
3.3.5
Configuring the Basics: Step 5 - Enabling IP Forwarding
To enable IP forwarding between your LAN and WAN,
ip relay all
3.3.6
Configuring the Basics: Step 6 - Enabling NAT
To enable NAT on a WAN interface,
i)
For RFC 2684 (RFC 1483) Ethernet Framing/1483 IP Framing/1577 IPoA
Assuming the WAN interface name is
wan
:
ip nat add
wan
ii)
For RFC 2364 PPPoA / RFC 2516 PPPoE
ip nat add ppp_device
You may proceed to
section 3.4
to set up your NAT Inbound Port Forwarding.
3.3.7
Configuring the Basics: Step 7 - Saving the Configurations
config save