Got it

Whether specific routes can replace default route

Created: Dec 24, 2019 02:54:42Latest reply: Aug 12, 2021 12:10:36 497 4 1 0 0
  Rewarded HiCoins: 0 (problem resolved)

Hi all,

I have an interesting question.

Can the following two static routes replace the default route ip route-static 0.0.0.0 0 10.0.0.1?

ip route-static 0.0.0.0 1 10.0.0.1

ip route-static 128.0.0.0 1 10.0.0.1


Do you have any idea?

Thanks.


Featured Answers
Popeye_Wang
Admin Created Dec 24, 2019 03:06:47

Hello Sprout,

The two routes cover all network segments. Therefore, the two static routes can replace the default route.

0.0.0.0/1   0.0.0.1~127.255.255.254 

128.0.0.0/1 128.0.0.0~255.255.255.254


Here's an experiment.


[A-PE1]disp ip routing-table 88.88.88.88

Route Flags: R - relay, D - download to fib

------------------------------------------------------------------------------

Routing Table: Public

Summary Count: 1

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

 

        0.0.0.0/1   Static  60   0          RD   12.1.1.2        GigabitEthernet

0/0/0

 

[A-PE1]disp ip routing-table 222.222.222.222

Route Flags: R - relay, D - download to fib

------------------------------------------------------------------------------

Routing Table: Public

Summary Count: 1

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

 

      128.0.0.0/1   Static  60   0          RD   12.1.1.2        GigabitEthernet

0/0/0

 

[A-PE1]ping 88.88.88.88

  PING 88.88.88.88: 56  data bytes, press CTRL_C to break

    Reply from 88.88.88.88: bytes=56 Sequence=1 ttl=255 time=50 ms

    Reply from 88.88.88.88: bytes=56 Sequence=2 ttl=255 time=30 ms

    Reply from 88.88.88.88: bytes=56 Sequence=3 ttl=255 time=10 ms

    Reply from 88.88.88.88: bytes=56 Sequence=4 ttl=255 time=40 ms

    Reply from 88.88.88.88: bytes=56 Sequence=5 ttl=255 time=50 ms

 

  --- 88.88.88.88 ping statistics ---

    5 packet(s) transmitted

    5 packet(s) received

    0.00% packet loss

    round-trip min/avg/max = 10/36/50 ms

 

[A-PE1]ping 222.222.222.222

  PING 222.222.222.222: 56  data bytes, press CTRL_C to break

    Reply from 222.222.222.222: bytes=56 Sequence=1 ttl=255 time=60 ms

    Reply from 222.222.222.222: bytes=56 Sequence=2 ttl=255 time=30 ms

    Reply from 222.222.222.222: bytes=56 Sequence=3 ttl=255 time=20 ms

    Reply from 222.222.222.222: bytes=56 Sequence=4 ttl=255 time=30 ms

    Reply from 222.222.222.222: bytes=56 Sequence=5 ttl=255 time=50 ms

 

  --- 222.222.222.222 ping statistics ---

    5 packet(s) transmitted

    5 packet(s) received

    0.00% packet loss

    round-trip min/avg/max = 20/38/60 ms

View more
  • x
  • convention:

All Answers

Hello Sprout,

The two routes cover all network segments. Therefore, the two static routes can replace the default route.

0.0.0.0/1   0.0.0.1~127.255.255.254 

128.0.0.0/1 128.0.0.0~255.255.255.254


Here's an experiment.


[A-PE1]disp ip routing-table 88.88.88.88

Route Flags: R - relay, D - download to fib

------------------------------------------------------------------------------

Routing Table: Public

Summary Count: 1

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

 

        0.0.0.0/1   Static  60   0          RD   12.1.1.2        GigabitEthernet

0/0/0

 

[A-PE1]disp ip routing-table 222.222.222.222

Route Flags: R - relay, D - download to fib

------------------------------------------------------------------------------

Routing Table: Public

Summary Count: 1

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

 

      128.0.0.0/1   Static  60   0          RD   12.1.1.2        GigabitEthernet

0/0/0

 

[A-PE1]ping 88.88.88.88

  PING 88.88.88.88: 56  data bytes, press CTRL_C to break

    Reply from 88.88.88.88: bytes=56 Sequence=1 ttl=255 time=50 ms

    Reply from 88.88.88.88: bytes=56 Sequence=2 ttl=255 time=30 ms

    Reply from 88.88.88.88: bytes=56 Sequence=3 ttl=255 time=10 ms

    Reply from 88.88.88.88: bytes=56 Sequence=4 ttl=255 time=40 ms

    Reply from 88.88.88.88: bytes=56 Sequence=5 ttl=255 time=50 ms

 

  --- 88.88.88.88 ping statistics ---

    5 packet(s) transmitted

    5 packet(s) received

    0.00% packet loss

    round-trip min/avg/max = 10/36/50 ms

 

[A-PE1]ping 222.222.222.222

  PING 222.222.222.222: 56  data bytes, press CTRL_C to break

    Reply from 222.222.222.222: bytes=56 Sequence=1 ttl=255 time=60 ms

    Reply from 222.222.222.222: bytes=56 Sequence=2 ttl=255 time=30 ms

    Reply from 222.222.222.222: bytes=56 Sequence=3 ttl=255 time=20 ms

    Reply from 222.222.222.222: bytes=56 Sequence=4 ttl=255 time=30 ms

    Reply from 222.222.222.222: bytes=56 Sequence=5 ttl=255 time=50 ms

 

  --- 222.222.222.222 ping statistics ---

    5 packet(s) transmitted

    5 packet(s) received

    0.00% packet loss

    round-trip min/avg/max = 20/38/60 ms

View more
  • x
  • convention:

Good
View more
  • x
  • convention:

andersoncf1
andersoncf1 MVE Author Created Jun 13, 2021 16:21:22

Good answer
View more
  • x
  • convention:

Well
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.