#### Stack Exchange Network Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. Loading… - Tour Start here for a quick overview of the site - Help Center Detailed answers to any questions you might have - Meta Discuss the workings and policies of this site - About Us Learn more about Stack Overflow the company, and our products 2. current community your communities Sign up or log in to customize your list. more stack exchange communities company blog ### current community - Server Fault help chat - Meta Server Fault ### your communities or to customize your list. ### more stack exchange communities Log in Sign up 1. Home 2. Questions 3. Unanswered 4. Tags 5. Chat 6. Users 7. Companies 2. Teams Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Try Teams for free Explore Teams 3. Teams 4. Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams Teams Q&A for work Connect and share knowledge within a single location that is structured and easy to search. # How to delete a route on a specific interface? [closed] 86k times 22 This question is . It is not currently accepting answers. Questions should demonstrate reasonable business information technology management practices. Questions that relate to unsupported hardware or software platforms or unmaintained environments may not be suitable for Server Fault - see the help center. Closed 10 years ago. When I start a VPN connection, a new default route is added on the utun0 interface: ``` Destination Gateway Flags Refs Use Netif Expire default utun0 UCS 21 0 utun0 default 192.168.43.1 UGScI 14 0 en1 ``` I'd like to get rid of the default/utun0 route. When using route with the -ifscope modifier, I get the following error: ``` $ sudo route delete -ifscope utun0 -net 0.0.0.0 route: writing to routing socket: not in table delete net 0.0.0.0: not in table ``` What am I doing wrong? What's the correct syntax of the route command in order to delete the default route? - mac-osx - route asked - 1 Before doing this. Keep in mind that it is a dangerous command if you are accessing your server online ! ;) – eVoxmusic Commented May 16, 2012 at 11:40 - 1 Telling the VPN clinet not to create the route sounds a lot cleaner to me. The native pptp client can be configured like this. Are you using a different client? – Nitz Commented Aug 13, 2014 at 8:04 - In macOS Monterey the following is working: sudo route delete -ifscope utun0 default. – Jaime Hablutzel Commented Jan 18, 2022 at 3:23 ## 5 Answers 5 9 I know it's late, but I'd like to know what kind of VPN you're using. I've had this problem with Cisco Anyconnect VPN. Not seeing the same error as you, but the command would appear to execute, but the routing table would still look the same. I believe Cisco AnyConnect locks the routing table in some way so that it cannot be modified. If this isn't Cisco AnyConnect, it may do something similar. I haven't found any documentation on it, but that's the conclusion I've come to from my testing. I've found this also appears to apply on Windows. Cheers, Aaron answered - It's Cisco. Our network topology changed, so I cannot verify the answers. – mgryszko Commented Nov 12, 2014 at 7:12 8 ``` $ sudo route delete -net 0.0.0.0 -ifp ppp0 delete net 0.0.0.0 ``` This is documented in route(8) answered 3 You can try this: ``` sudo route delete -net default utun0 ``` answered 1 Not in front of a Mac right now, off the top of my head try; ``` sudo route del default dev utun0 ``` answered - Sorry, but it's not working. I tried also with sudo route delete default -ifscope utun0, but still without success – mgryszko Commented May 16, 2012 at 12:06 1 Try route del default wlp2s0. Where wlp2s0 is the interface name. This command deletes the first default gateway on the specific interface you provide to the command. answered - Yes. Downvotes again for no reason, no explanation, just a downvote !! – 3bdalla Commented Jan 29, 2015 at 21:09 - Try adding an explanation of exactly what your answer does and why you believe it will solve the problem. – fukawi2 Commented Jan 30, 2015 at 5:52 - You have a good point, although does not promote to be a downvote. I updated my answer. – 3bdalla Commented Jan 30, 2015 at 11:29 Start asking to get answers Find the answer to your question by asking. Explore related questions - mac-osx - route See similar questions with these tags. - The Overflow Blog - How self-supervised language revolutionized natural language processing and... - “We’re not replacing you; we’re with you”: Where AI meets infrastructure - Featured on Meta - Updates to advertising guidelines - Evolving comments: An experiment to encourage engagement and follow-up questions #### Related 4 1 0 1 4 0 0 #### Hot Network Questions - I would like to know the standards for minimizing PCB clearance as much as possible - How to handle teammates pressuring me (even publicly) to redo my work after I already explained my reasoning? - How can heat pumps be more efficient than electric/resistive heating? - My work is being read but not used — what can I improve? - Has our understanding of genetics damaged existentialism? - Does OPTIMIZE FOR UNKNOWN do anything for table-valued variables/parameters? - Geometry Nodes used to generate wall layouts - Chern classes in Čech cohomology - How has the rotation of Earth been accounted for in the theory of gravitational time dilation? - What is stopping trader taking arbitarge in HKD-USD - Slow SQL query with nested subquery - Are there two "Saviors," or just one "Savior" manifest in two divine personages, in Titus 1? - In light cone, why is it a cone and not a sphere, given that light travels in all directions in space-time? Is it a projection of slice of 4D sphere? - How to achieve the Steel Division 2 frontline? (Dividing area smoothly with curves using a few points) - Combining vs. Separating Predictors: What’s Better for Prediction - Rude referee: ask to change or wait - Children and aliens grow up together - Geometry bevel profile appears four times, just want once - Can a darkmantle willingly detach? - Is it a problem if the antagonist appears later in the novel? - I worry that my advice to female academics will sound like platitudes - How to read a line from a file and output the line to a file - What is the fastest playable race? - Can we realize any triple linking number of 3-surfaces in 5-manifolds? ##### Server Fault - Tour - Help - Chat - Contact - Feedback ##### Company - Stack Overflow - Teams - Advertising - Talent - About - Press - Legal - Privacy Policy - Terms of Service - Cookie Settings - Cookie Policy ##### Stack Exchange Network - Technology - Culture & recreation - Life & arts - Science - Professional - Business - API - Data - Blog - Facebook - Twitter - LinkedIn - Instagram Site design / logo © 2025 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2025.4.29.25832