Configure an IP Address on an Interface
router(config)#interface ethernet0
router(config-if)#ip address 192.168.4.2 255.255.255.0
router(config-if)#no shutdown
Set the Default Gateway (quick):
router(config)#ip route 0.0.0.0 0.0.0.0 192.168.4.1
--------------------------------------------------------------------------------
IP Routing - Gateway of Last Resort
http://www.cisco.com/warp/public/105/default.html
The gateway of last resort is simply the most preferred default route known by
the router.
The ip default-gateway command differs from the other two commands. It should
only be used when ip routing is disabled on the Cisco router.
Unlike the ip default-gateway command, you can use ip default-network when ip
routing is enabled on the Cisco router. When you configure ip default-network
the router considers routes to that network for installation as the gateway of
last resort on the router.
For every network configured with ip default-network, if a router has a route
to that network, that route is flagged as a candidate default route.
ip route 0.0.0.0 0.0.0.0
Creating a static route to network 0.0.0.0 0.0.0.0 is another way to set the
gateway of last resort on a router. As with the ip default-network command,
using the static route to 0.0.0.0 is not dependent on any routing protocols.
However, ip routing must be enabled on the router.
router(config)#ip route 0.0.0.0 0.0.0.0 192.168.4.1
Use the ip default-gateway command when ip routing is disabled on a Cisco
router. Use the ip default-network and ip route 0.0.0.0 0.0.0.0 commands to
set the gateway of last resort on Cisco routers that have ip routing enabled.
The way in which routing protocols propagate the default route information
varies for each protocol.
--------------------------------------------------------------------------------
Cisco DNS Configuration
DNS servers:
10.12.20.53
10.12.30.51
primary domain name:
local.lan
search domains:
linux.lan
Configure DNS:
router#configure terminal
router(config)#ip domain-lookup
router(config)#ip name-server 10.12.20.53
router(config)#ip name-server 10.12.30.51
router(config)#ip domain-name local.lan
router(config)#ip domain-list linux.lan
router(config)#^Z
router#write memory
The domain-name command sets the primary domain name associated with your
device. This domain name will be added to relatively qualified names (host
name only searches) when performing DNS queries.
The domain-list command allows additional domain names to be searched with
DNS queries.