Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

How to configure "route delete" and "route add"


  • Please log in to reply
10 replies to this topic

#1 Achaemenid

Achaemenid

  • Members
  • 419 posts
  • OFFLINE
  •  
  • Local time:04:22 PM

Posted 17 April 2015 - 11:32 AM

I would like to configure a route delete and route add. 

 

from command prompt we type: route print

 

this gives us the gateway number

 

I think a route delete command should be "route delete" then 0.0.0.0 then the gateway number

 

advice on whether this is right and on how to do the "route add" configuration would be appreciated. 


Edited by Achaemenid, 17 April 2015 - 11:33 AM.


BC AdBot (Login to Remove)

 


#2 Sneakycyber

Sneakycyber

    Network Engineer


  • BC Advisor
  • 6,109 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Ohio
  • Local time:05:22 AM

Posted 18 April 2015 - 09:09 PM

See This technet article

Chad Mockensturm 

Systems and Network Engineer

Certified CompTia Network +, A +


#3 Achaemenid

Achaemenid
  • Topic Starter

  • Members
  • 419 posts
  • OFFLINE
  •  
  • Local time:04:22 PM

Posted 19 April 2015 - 09:17 AM

See This technet article

I am a little shaky about the terminology, esp the word, static. 
 
So what I would be doing is adding or deleting a "static" route. 
 
If I am on a vpn and the vpn server goes down, if the native route is deleted the internet connection will not shift back to the native server. Instead there will be no internet connection. 
 
Then I can add the native server again with the "route add" command. 
 
Do I have this right?
 
A second confusion I have is which number to input.   I was told previously that a route delete command should have 0.0.0.0 then the gateway number.   But the article you have linked me to indicates it is the destination number. 

 

Are these two different types of route deletes?  Do they perform different functions?

 

Screenshot:
 
https://www.sendspace.com/file/uzl8u2


Edited by Achaemenid, 19 April 2015 - 09:29 AM.


#4 Sneakycyber

Sneakycyber

    Network Engineer


  • BC Advisor
  • 6,109 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Ohio
  • Local time:05:22 AM

Posted 19 April 2015 - 11:39 AM

There are 3 separate articles, I apologize I only linked to the Route add option. 

  1. View Ip Routing Table (This one you know Already)
  2. Add Static IP Route
  3. Remove Static IP Route

In your example screen shot: To delete the network destination 0.0.0.0 you type route delete 0.0.0.0 the gateway number can be omitted. To add a type route add 0.0.0.0 mask 0.0.0.0 192.168.9.1 interface 192.168.9.115.  


Edited by Sneakycyber, 20 April 2015 - 09:12 AM.

Chad Mockensturm 

Systems and Network Engineer

Certified CompTia Network +, A +


#5 Achaemenid

Achaemenid
  • Topic Starter

  • Members
  • 419 posts
  • OFFLINE
  •  
  • Local time:04:22 PM

Posted 20 April 2015 - 06:23 AM

There are 3 separate articles, I apologize I only linked to the Route add option. 

  1. View Ip Routing Table (This one you know Already)
  2. Add Static IP Route
  3. Remove Static IP Route

In your example screen shot: To delete the network destination 0.0.0.0 you type route delete 0.0.0.0 the gateway number can be omitted. To add a type route add 0.0.0.0 mask 0.0.0.0 192.168.9.1 interface 192.168.9.115. When adding the network destination 0.0.0.0 

 

Am I correct that you must do the route delete every time you want to delete the native IP,

 

but that you only need to do the route add once and it automatically returns to the native IP route when you leave the alternative server?

 

P.S. is there something missing from your last sentence: "When adding the network destination 0.0.0.0 ...."?


Edited by Achaemenid, 20 April 2015 - 06:29 AM.


#6 Sneakycyber

Sneakycyber

    Network Engineer


  • BC Advisor
  • 6,109 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Ohio
  • Local time:05:22 AM

Posted 20 April 2015 - 09:18 AM

  :o Sorry about the missing line I must have been mid sentence when I got distracted, I edited the post. I will post more Later when I Get back to my Home Office 


Chad Mockensturm 

Systems and Network Engineer

Certified CompTia Network +, A +


#7 Sneakycyber

Sneakycyber

    Network Engineer


  • BC Advisor
  • 6,109 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Ohio
  • Local time:05:22 AM

Posted 20 April 2015 - 06:20 PM

In this case you will need to remove defaut the route the vpn adds and then add your networks default route back Each time the problem happens.

Chad Mockensturm 

Systems and Network Engineer

Certified CompTia Network +, A +


#8 Achaemenid

Achaemenid
  • Topic Starter

  • Members
  • 419 posts
  • OFFLINE
  •  
  • Local time:04:22 PM

Posted 21 April 2015 - 07:15 AM

In this case you will need to remove defaut the route the vpn adds and then add your networks default route back Each time the problem happens.

so whenever I use vpn I must delete the native route. 

 

then when I return to the native route, I add back the native route. 



#9 Achaemenid

Achaemenid
  • Topic Starter

  • Members
  • 419 posts
  • OFFLINE
  •  
  • Local time:04:22 PM

Posted 22 April 2015 - 08:48 AM

I have a question about when I put the route delete and route add on. 

 

I make the route delete command after I am connected to a vpn, right?

 

Then I make the route add command after I am reconnected to my native ip, right?



#10 Sneakycyber

Sneakycyber

    Network Engineer


  • BC Advisor
  • 6,109 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Ohio
  • Local time:05:22 AM

Posted 22 April 2015 - 03:25 PM

Sorry for the delay, busy week at work. I will post back this evening.

Edited by Sneakycyber, 22 April 2015 - 03:26 PM.

Chad Mockensturm 

Systems and Network Engineer

Certified CompTia Network +, A +


#11 Sneakycyber

Sneakycyber

    Network Engineer


  • BC Advisor
  • 6,109 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Ohio
  • Local time:05:22 AM

Posted 22 April 2015 - 06:09 PM

You shouldn't need to delete any routes when connecting to the Vpn, only if you are unable to connect to the internet After disconnecting from the vpn. Lastly if the VPN is configured correctly you shouldn't need to do this at all. 


Chad Mockensturm 

Systems and Network Engineer

Certified CompTia Network +, A +





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users