How can I change the default gateway?

WWW

Currently I'm running a FreeBSD 9.1 and the default gateway is already configured in the rc.conf.

rc.conf:

defaultrouter = "10.0.0.1"

But now I want to change the default gateway without rebooting the system, is this possible?

Chris S
route del default
route add default 1.2.3.4

Where 1.2.3.4 is the new gateway. You can even concatenate them onto the same line with a ;

Edit: This is FreeBSD, not Linux. The command is different. Please do not edit this Answer if you haven't read the Question carefully enough to determine the operating system being used.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How can I find out what my default gateway should be?

From Dev

How can I change the default Nautilus Bookmarks?

From Dev

How can I change the default SQLite timezone

From Dev

How can I change the default Nautilus Bookmarks?

From Dev

How can I change the default music player?

From Dev

How I can change the default size of the ChoiceBox?

From Dev

Can't change the default gateway with static IP

From Dev

Can I set two default gateway on linux?

From Dev

How can I change the default IDetailPane in an Eclipse plugin?

From Dev

How can I change the default editor of the sudoedit command to be vim?

From Dev

How can I change the default Codec used in WebRTC?

From Java

How can I change the default font of a Tkinter application during the mainloop?

From Dev

How can I change the default timeout using KIF?

From Dev

How can I change Firefox's default dictionary?

From Dev

How can I change the default build output directory in Visual Studio?

From Java

How can I change the default width of a Twitter Bootstrap modal box?

From Dev

How can I change a user's default group in Linux?

From Dev

How can I change the default icon for a file extension?

From Dev

How can I change default settings for new users?

From Dev

How can I change the default log template in a restlet application?

From Dev

How can I change the default HTML escaping function in React Components?

From Dev

How can I change the default look and feel of Jframe? (Not theme of Netbeans)

From Dev

How can I change the default seed in std::hash<>?

From Dev

Android - How can I change the default message "Complete action using"

From Dev

How can I change the default keyboard shortcuts in El Capitan?

From Dev

How can I change the default error message for a validator in django

From Dev

How can I change/edit Jenkins default message on login?

From Dev

How can I change the default font size of a XRRichText?

From Dev

How can I change the default particle in Unity 3D?

Related Related

  1. 1

    How can I find out what my default gateway should be?

  2. 2

    How can I change the default Nautilus Bookmarks?

  3. 3

    How can I change the default SQLite timezone

  4. 4

    How can I change the default Nautilus Bookmarks?

  5. 5

    How can I change the default music player?

  6. 6

    How I can change the default size of the ChoiceBox?

  7. 7

    Can't change the default gateway with static IP

  8. 8

    Can I set two default gateway on linux?

  9. 9

    How can I change the default IDetailPane in an Eclipse plugin?

  10. 10

    How can I change the default editor of the sudoedit command to be vim?

  11. 11

    How can I change the default Codec used in WebRTC?

  12. 12

    How can I change the default font of a Tkinter application during the mainloop?

  13. 13

    How can I change the default timeout using KIF?

  14. 14

    How can I change Firefox's default dictionary?

  15. 15

    How can I change the default build output directory in Visual Studio?

  16. 16

    How can I change the default width of a Twitter Bootstrap modal box?

  17. 17

    How can I change a user's default group in Linux?

  18. 18

    How can I change the default icon for a file extension?

  19. 19

    How can I change default settings for new users?

  20. 20

    How can I change the default log template in a restlet application?

  21. 21

    How can I change the default HTML escaping function in React Components?

  22. 22

    How can I change the default look and feel of Jframe? (Not theme of Netbeans)

  23. 23

    How can I change the default seed in std::hash<>?

  24. 24

    Android - How can I change the default message "Complete action using"

  25. 25

    How can I change the default keyboard shortcuts in El Capitan?

  26. 26

    How can I change the default error message for a validator in django

  27. 27

    How can I change/edit Jenkins default message on login?

  28. 28

    How can I change the default font size of a XRRichText?

  29. 29

    How can I change the default particle in Unity 3D?

HotTag

Archive