When I had to configure a Cisco (ISR C1121X-8P) router, I noticed it only had a Micro USB console port. I was able to connect using a standard cable, and this generated a COM8 port in Device Manager. I then successfully established a connection to that port using PuTTY at a speed of 9600.
enableshow running-configconfigure terminalhostname lifeisrouting.comenable secret PASSWORDip domain-name lifeisrouting.localcrypto key generate rsa modulus 2048username admin secret PASSWORD
ip ssh version 2line vty 0 4login localtransport input ssh
Configured the WAN port:
interface GigabitEthernet0/0/0description WANip address dhcp
ip nat outsideno shutdown
Configured DHCP and NAT:
ip dhcp excluded-address 192.168.100.1 192.168.100.10ip dhcp pool LAN-POOLnetwork 192.168.100.0 255.255.255.0default-router 192.168.100.1dns-server 1.1.1.1 8.8.4.4
access-list 1 permit 192.168.100.0 0.0.0.255ip nat inside source list 1 interface GigabitEthernet0/0/0 overload
The second interface was configured as a backup WAN. The switchport command is not applicable to this interface, meaning it cannot be logically combined with the other eight LAN ports. Therefore, it must be treated as a separate routed interface, which allows you to configure a distinct IP address (or a separate DHCP client) on it.
interface GigabitEthernet0/0/1description WAN2ip address dhcpip nat outside
no shutdown
interface vlan 1
ip address 192.168.100.1 255.255.255.0ip nat inside
Setting up eight LAN ports (default ports are in vlan 1, it is enough to specify mode access):
interface GigabitEthernet0/1/0switchport mode accessswitchport access vlan 1
no shutdown
interface range GigabitEthernet0/1/0 - 0/1/7
switchport mode accessswitchport access vlan 1no shutdownexit
Saving configuration:
write memorycopy running-config startup-config
Viewing various information:
show interfaces GigabitEthernet0/0/1 switchportshow ip interface briefshow ip routeshow versionshow ip interface briefshow running-config
ip http serverip http authentication local
No comments:
Post a Comment