LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-02-2009, 05:42 AM   #1
igsen
Member
 
Registered: Mar 2009
Location: Phil. Is.
Distribution: Ubuntu 18.04
Posts: 80

Rep: Reputation: 15
Quick question on gateway ip


Quote:
eth0 Link encap:Ethernet HWaddr 00:11:5b:8b:bf:85
inet addr:122.2.159.251 Bcast:122.2.159.255 Mask:255.255.240.0
inet6 addr: fe80::211:5bff:fe8b:bf85/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2576 errors:0 dropped:0 overruns:0 frame:0
TX packets:2645 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1684572 (1.6 MB) TX bytes:454699 (454.6 KB)
Interrupt:23 Base address:0xae00

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:150 errors:0 dropped:0 overruns:0 frame:0
TX packets:150 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6300 (6.3 KB) TX bytes:6300 (6.3 KB)
The above is what I get when executing ifconfig on my terminal.
My quick question: What is my my gateway ip?
As you know I found an article on how to set static address but I don't know what my gateway ip is.
 
Old 04-02-2009, 05:43 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
ifconfig has nothing to do with routing, run "route -n" instead.
 
Old 04-02-2009, 05:46 AM   #3
maxy7710
Member
 
Registered: Jan 2008
Location: Mumbai, india
Distribution: REDHAT, FEDORA,SUSE, UBUNTU, ORACLE ENTERPRISE LINUX & SOLARIS 10
Posts: 130

Rep: Reputation: 17
simply type route on command line & u will get it.

u can also check /etc/sysconfig/network-scripts/ifcfg-eth0 to check all details
 
Old 04-02-2009, 05:46 AM   #4
maxy7710
Member
 
Registered: Jan 2008
Location: Mumbai, india
Distribution: REDHAT, FEDORA,SUSE, UBUNTU, ORACLE ENTERPRISE LINUX & SOLARIS 10
Posts: 130

Rep: Reputation: 17
simply typr route on command line & u will get it.

u can also check /etc/sysconfig/network-scripts/ifcfg-eth0 to check all details
 
Old 04-02-2009, 05:55 AM   #5
igsen
Member
 
Registered: Mar 2009
Location: Phil. Is.
Distribution: Ubuntu 18.04
Posts: 80

Original Poster
Rep: Reputation: 15
Thanks, everybody!
 
  


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
Just A Quick Question robertneville777 Linux - Certification 9 03-21-2009 03:29 AM
quick c question andystanfordjason Programming 8 01-26-2007 03:48 PM
Question Concerning ISO's and one quick question. evrae Linux - Software 2 06-21-2004 03:53 AM
samba smb.config question (quick question) TheDOGG Linux - Networking 1 03-02-2004 07:19 AM
Quick Question Giallo998 Linux - Newbie 2 10-21-2003 07:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:23 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