S2 C2 Static Routing

R(config)#line console 0
R(config-if)#logging synchronous //tiep tuc danh lenh ma ko bi ngat quang boi cac thong bao

R#debug ip routing //quan sat qua trinh cap nhap ip route cua router

R#undebug all //tat lenh debug

R#show ip interface brief //hien thi thong tin tom tat cac cong tren router

Create Static Route
R(config)#ip route [Network address] [Subnet Mask] [Exit Int / Next hop]
Exit Int dung trong point-to-point
Next hop dung trong Multiaccess
Muon xoa them ‘no’ dang truoc

Default Route
Eg: R1(config)#ip route 0.0.0.0 0.0.0.0 s0/0

Static Routing chi su dung cho Stub Network //Mang chi co 1 duong di ra va di vao – mang cut
Eg: R1(config)#ip route 172.16.1.0 255.255.255.0 s0/0
OR: R1(config)#ip route 172.16.1.0 255.255.255.0 10.0.0.2

Router chi dinh tuyen duong di den mang khac ma khong nho duong tro ve, muon tro ve phai tao duong tro ve tren Router khac

#do de thuc hien cac lenh o mode ngoai ma dang o mode trong
Eg:(config-if)#do show ip route