Router configuration

 

 

Router 1

En // user access privileges model

Config t // privilege into the global

Int f0 / 1 // enter f0 / 1 Interface

Ip add 192.168.1.1 255 255 255.0 // configure ip address with subnet mask

No shut // Open Interface

Int f0 / 0 // enter f0 / 0 Interface

Ip add 192.168.2.1 255.255.255.0 // configured IP address with subnet mask

No sh // Open Interface

Ip route 192.168.3.0 255.255.255.0 192.168.2.2 // configure a static route, the 3.0 segment added to the routing table

Ip route 192.168.4.0 255.255.255.0 192.168.2.2 // configured static route 4.0 segment added to the routing table

 ========================================================================================================

Router 2

En // user access privileges model

Config t // privilege into the global

Int f0 / 1 // enter f0 / 1 Interface

Ip add 192.168.2.2 255 255 255.0 // configure ip address with subnet mask

No shut // Open Interface

Int f0 / 0 // enter f0 / 0 Interface

Ip add 192.168.3.1 255.255.255.0 // configured IP address with subnet mask

No sh // Open Interface

Ip route 192.168.1.0 255.255.255.0 192.168.2.1 // configure a static route, the 1.0 segment added to the routing table

Ip route 192.168.4.0 255.255.255.0 192.168.3.2 // configured static route 4.0 segment added to the routing table

 =========================================================================================================

Router 3

En // user access privileges model

Config t // privilege into the global

Int f0 / 1 // enter f0 / 1 Interface

Ip add 192.168.3.2 255 255 255.0 // configure ip address with subnet mask

No shut // Open Interface

Int f0 / 0 // enter f0 / 0 Interface

Ip add 192.168.4.1 255.255.255.0 // configured IP address with subnet mask

No sh // Open Interface

Ip route 192.168.1.0 255.255.255.0 192.168.3.1 // configure a static route, the 1.0 segment added to the routing table

Ip route 192.168.2.0 255.255.255.0 192.168.3.1 // configure a static route, the 2.0 segment added to the routing table

 =======================================================================================================

PC1

IP Address: 192.168.1.2

Subnet Mask: 255.255.255.0

Gateway: 192.168.1.1

 ========================================================================================================

PC2

IP Address: 192.168.4.2

Subnet Mask: 255.255.255.0

Gateway: 192.168.4.1

Guess you like

Origin www.cnblogs.com/tanxiaojuncom/p/11205224.html