How to Assign Default Route - Linux

Enter the command to view the system's routing table. Then enter the command to assign as the default route.

I did:


Whts next?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

route -n

will show you the routing table.

route add default gw

will add a default gateway, until next reboot.  To make it permanent depends on which Linux distro you are using.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
F-J-KAuthor Commented:
Great! One more question before closing the thread.

I need to check Network Traffic Over a Specific NIC (eth0). I did

netstat -t -u -n - However this checks for all NIC. I just need for eth0.

netstat -tun

won't show you network traffic.  It will show you the connection table and the send/receive queue.

Is that what  you are really after?

Powerful Yet Easy-to-Use Network Monitoring

Identify excessive bandwidth utilization or unexpected application traffic with SolarWinds Bandwidth Analyzer Pack.

F-J-KAuthor Commented:
No, i need to see network traffic that goes on eth0 at real time regardless of what command name is. Any command you know will be ok for me
There's plenty of tools for monitoring traffic in realtime.

I particularly like iftop (like top, but for interfaces).

You can see a list of various network utilities at
F-J-KAuthor Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.