[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 435
  • Last Modified:

How to Assign Default Route - Linux

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

I did:

>route

Whts next?
0
F-J-K
Asked:
F-J-K
  • 3
  • 3
1 Solution
 
TintinCommented:
route -n

will show you the routing table.

route add default gw 192.168.1.1

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

0
 
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.

0
 
TintinCommented:
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?

0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
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
0
 
TintinCommented:
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

http://www.debianhelp.co.uk/networktools1.htm
0
 
F-J-KAuthor Commented:
Thanks
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now