-
Notifications
You must be signed in to change notification settings - Fork 0
/
1q
41 lines (29 loc) · 1.39 KB
/
1q
1
2
3
4
5
6
7
8
9
10
11
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
37
38
39
40
#Configuring a cisco router
R1>en
R1#show show ip route #Displays all routes
R1#conf t
R1(config)# hostname R1
#Configuring INTERFACES
R1>en
R1#show ip interface brief #Displays all the interfaces
R1#conf t
R1(config)#int g0/0/0 #You choose the specific interface to configure
R1(config-if)#ip address 192.168.13.2 255.255.255.0 # one MUST include the subnet mask
R1(config-if)#description ## to SW1 ## #This is a descriptive message
R1(config-if)#no shut #this enables the interface
#Configuring STATIC Routes
R1>en
R1#show show ip route #Displays all routes
R1#conf t
R1(config)#ip route 192.168.1.0 255.255.255.0 192.168.12.2 #192.168.1.0 (destination), 255.255.255.0 (MASK), 192.168.12.2 (Next Hop)
#DELETING a route
R1>en
R1#show show ip route #Displays all routes
R1#conf t
R1(config)# no ip route 192.168.1.0 255.255.255.0 192.168.12.2
#Configuring a DEFAULT GATEWAY
** Disclaimer, the PC is actually a Router **
#PC>en
#PC1#show show ip route #Displays all routes
#PC1#conf t
#R1(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.254 #0.0.0.0 (destination), 0.0.0.0 (MASK), 192.168.1.254 (Next hop)