Edmonton(dhcp-config)#network 10.10.30.0
255.255.255.0
De?¬?nes the IP network
address
Edmonton(dhcp-config)#default-router
10.10.30.1
Declares the router??™s LAN
interface address as a
gateway address
Edmonton(dhcp-config)#dns-server 10.10.30.2 Declares any required
DNS server address(es)
Edmonton(dhcp-config)#exit Exits dhcp-con?¬?g mode
18 Con?¬?guring a Cable Modem Connection
Step 3: Con?¬?gure NAT Using a Route Map
Step 4: Con?¬?gure Default Routing
Edmonton(config)#access-list 100 permit ip
10.10.30.0 0.0.0.255 any
Creates an access list
de?¬?ning which addresses
will be translated in the
NAT process
Edmonton(config)#route-map ROUTEMAP permit 1 Enters route-map
con?¬?guration mode
Edmonton(config-route-map)#match ip address 100 Chooses the access list
that de?¬?nes IP addresses
for NAT
Edmonton(config-route-map)#exit Exits route-map
con?¬?guration mode
Edmonton(config)#ip nat inside source routemap
ROUTEMAP interface fastethernet 0/0
overload
Speci?¬?es the NAT inside
local (as de?¬?ned by the
route map) and inside
global (interface
fastethernet 0/0) linkage
for the address translation
Edmonton(config)#ip route 0.0.0.0 0.0.0.0
fastethernet 0/0 A.B.C.D
Sets the default route to
the next-hop address of
A.
Pages:
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36