LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-14-2019, 10:00 PM   #1
davesny
Member
 
Registered: Aug 2006
Posts: 40

Rep: Reputation: 15
ip r command


Hello,
I inadvertently entered 'ip r' as root, and now the computer will only connect to one network.
Neither will the LAN port connect.
I used 'ip route flush' to get rid of that configuration.
However, the LAN still does not work, neither will the computer connect to another WiFi network.
If someone could help me, I would appreciate it.
OpenSuse Leap 15.1, KDE
HP Flagship Laptop
 
Old 10-15-2019, 12:26 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
The ip r command just lists your routes. It's very unlikely you broke anything if you entered exactly this command.

In case you changed your routing table, the changes are not persistent across reboots. Restart your system and the original configuration should be effective again.
 
Old 10-15-2019, 08:30 AM   #3
davesny
Member
 
Registered: Aug 2006
Posts: 40

Original Poster
Rep: Reputation: 15
Thanks, I did that and it works with a cell phone hotspot.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] [SOLVED] bash script: can echo command, command works if I type, but command doesn't work in script ... why? hopeless_n00b Linux - Newbie 10 07-12-2018 05:57 AM
Command Substitution: $(command) vs `command` penguinbody Linux - Newbie 9 04-15-2016 07:00 AM
bash: <command name> command not found smash Programming 5 03-13-2006 08:48 AM
How to recall an old command at the command prompt? J_Szucs Linux - Newbie 9 03-07-2003 12:29 AM
java command - "bash: java: command not found" ??? RedHat123 Programming 2 07-16-2002 11:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration