You are on page 1of 1

>enable

#conf terminal
#Hostname Phearun-R
Phearun-R(Config)#no ip domain-lookup
Phearun-R(Config)#enable password cisco
Phearun-R(Config)#enable secret class
Phearun-R(Config)#banner motd #------------------#
Phearun-R(Config)#username admin password cisco
Phearun-R(Config)#line console 0
Phearun-R(Config-line)# login local
Phearun-R(Config-line)#end
Phearun-R# copy run start
Phearun-R#conf terminal
Phearun-R(config)#interface fa0/0
Phearun-R(config-if)#description Connecting to LAN_A
Phearun-R(config-if)#ip address 192.168.0.1 255.255.255.0
Phearun-R(config-if)#no shutdown
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
Phearun-R(config-if)#
Phearun-R#
%SYS-5-CONFIG_I: Configured from console by console
Phearun-R(config-if)#description Connecting to LAN_A
Phearun-R(config-if)#ip address 192.168.1.1 255.255.255.0
Phearun-R(config-if)#no shutdown
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
Phearun-R(config-if)#
Phearun-R#
%SYS-5-CONFIG_I: Configured from console by console
Phearun-R#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
C
C

192.168.0.0/24 is directly connected, FastEthernet0/0


192.168.1.0/24 is directly connected, FastEthernet0/1

You might also like