After starting the router, you can open a console to manage and configure it and use the following commands to configure the router:
?
: Command shows a list of available commands.
conf t
orconfig t
: Enter terminal configuration modeinterface <interface>
orint <interface>
: Enter interface configuration modeexit
: Exit from the current mode
ip address <ip address> <subnet mask>
: Set the IP address of the interfaceno shutdown
: Enable the interfaceshutdown
: Disable the interface
Remember that you can use show commands in default mode.
show ip interface brief
: Show a summary of the IP addresses of the interfaces. Can be abbreviated toshow ip int br
show ip interface <interface>
: Show detailed information about the IP address of the interface. Can be abbreviated toshow ip int <interface>
show ip route
: Show the routing tableshow ip arp
: Show the ARP table. Can be abbreviated toshow arp
show ip dhcp pool
: Show the DHCP pools
ip dhcp pool <pool name>
: Create a DHCP poolnetwork <network address> <subnet mask>
: Set the network address of the DHCP pooldefault-router <ip address>
: Set the default gateway of the DHCP pooldns-server <ip address>
: Set the DNS server of the DHCP pool
- R(interface)
ip nat inside
: Configure interface as NAT inside interface ip nat outside
: Configure interface as NAT outside interfaceip nat inside source static <source-ip> <dest-ip>
: Configure a static NAT translation
access-list 1 permit <ip-address> <subnet-mask>
: Permit traffic fromip nat pool <pool-name> <start-ip-addr> <end-ip-addr> netmask <netmask>
: #create a NAT poolip nat inside source list 1 pool <pool-name>
: Enable pool