当前位置:网站首页>Static routing configuration

Static routing configuration

2022-07-07 18:32:00 Chen chacha__

Simple static routing configuration

Simple configuration such as host is omitted

  Configure the router on the left

int eth0/0/0

ip add 192.168.1.254 255.255.255.0

no shut

int f0/0 

ip add 12.12.12.1 255.255.255.0

no shut

Configure the router on the right

int eth0/0/0

ip add 172.16.1.254 255.255.255.0

no shut

int f0/0

ip add 12.12.12.2 255.255.255.0

no shut

On two routers respectively Configure static routing

Left router Only with 172.16.1.1 Host communication , Which is set to Host routing ( Match single IP Address )

ip route 172.16.1.1 255.255.255.255 12.12.12.2

Router settings on the right And 192.168.0.0 Network segment communication , Which is set to Subnet routing ( Indicates that a subnet is matched )

ip route 192.168.0.0 255.255.0.0 12.12.12.1     # The setting here is 16 Bit subnet mask , contain 24 Bit subnet mask

Route summary and default route topology

Router0 Basic configuration

int f0/0

ip add 192.168.1.254 255.255.255.0

no shut

int f0/1

ip add 12.12.12.1 255.255.255.0

no shut

Router1 Basic configuration

int f0/1

ip add 12.12.12.2 255.255.255.0

no shut

int f0/0

ip add 76.12.16.133 255.255.255.252

no shut

CopyRouter0 Basic configuration

int f0/0

ip add 76.12.16.134 255.255.255.252

no shut

int e0/2/0

ip add 76.12.96.254

no shut

int e0/0/0

ip add 76.12.32.254 255.255.255.0

no shut

R0 Route summary :76.12.0.0/16

ip route 76.12.0.0 255.255.0.0 12.12.12.2

CopyR0 Default routing settings

ip route 0.0.0.0 0.0.0.0 76.12.16.133

R1 Routing settings

ip route 76.12.0.0 255.255.0.0 76.12.16.134   # Configure subnet routing on the left

ip route 0.0.0.0 0.0.0.0 12.12.12.1                  # Configure the default route on the right

原网站

版权声明
本文为[Chen chacha__]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207071635465935.html