LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-10-2010, 03:59 AM   #1
cola
Senior Member
 
Registered: Sep 2007
Posts: 1,045

Rep: Reputation: 65
Command to know the stub domain ip address in ip4 format


What's the command to know the stub domain(LAN) ip address in ip4 format?
 
Old 04-10-2010, 04:06 AM   #2
cola
Senior Member
 
Registered: Sep 2007
Posts: 1,045

Original Poster
Rep: Reputation: 65
ifconfig eth0 shows in ipv6 format.
 
Old 04-10-2010, 04:34 AM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Quote:
Originally Posted by cola View Post
ifconfig eth0 shows in ipv6 format.
Are you sure ? Mine says:

Code:
bash-3.1$ /sbin/ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:1c:c2:35:03:2e  
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:28034 errors:0 dropped:0 overruns:0 frame:0
          TX packets:27942 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:31025770 (29.5 MiB)  TX bytes:4510672 (4.3 MiB)
          Memory:93200000-93220000
That's ip4 format.
 
Old 04-10-2010, 05:49 AM   #4
cola
Senior Member
 
Registered: Sep 2007
Posts: 1,045

Original Poster
Rep: Reputation: 65
Quote:
Originally Posted by H_TeXMeX_H View Post
Are you sure ? Mine says:

Code:
bash-3.1$ /sbin/ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:1c:c2:35:03:2e  
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:28034 errors:0 dropped:0 overruns:0 frame:0
          TX packets:27942 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:31025770 (29.5 MiB)  TX bytes:4510672 (4.3 MiB)
          Memory:93200000-93220000
That's ip4 format.
Yes,sure.
This is mine.
Code:
eth0      Link encap:Ethernet  HWaddr 00:xx:xx:xx:xx:xx
          inet6 addr: fe80::218:38ff:fe02:9788/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5520 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3714 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2376001 (2.2 MiB)  TX bytes:563302 (550.0 KiB)
          Interrupt:17
It's pppoe connection.There is also ppp0.

Last edited by cola; 04-10-2010 at 05:50 AM.
 
Old 04-10-2010, 06:08 AM   #5
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Ok, what about 'netstat', does that show it in ipv4 ?
 
Old 04-10-2010, 06:25 AM   #6
cola
Senior Member
 
Registered: Sep 2007
Posts: 1,045

Original Poster
Rep: Reputation: 65
Quote:
Originally Posted by H_TeXMeX_H View Post
Ok, what about 'netstat', does that show it in ipv4 ?
Can you please post complete command for that?
netstat -a ?
 
Old 04-10-2010, 08:09 AM   #7
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Yeah, either 'netstat' or 'netstat -a' it should show your IP under 'Local Address'.

Also, are you using ipv6 on your LAN ? This could be a reason for it being in ipv6 format.
 
Old 04-10-2010, 08:19 AM   #8
jovanoti
LQ Newbie
 
Registered: Mar 2010
Distribution: Slackware
Posts: 25

Rep: Reputation: 2
I can't believe this. Are you sure you that you don't have other network interfaces - eth1, ppp0, etc? Execute `ifconfig -a' or `ip a' to see all available interfaces.
 
  


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
Ip4 in IP6 encapsulator/decapsulator and raw socket the_ionic Programming 0 10-14-2009 12:24 PM
How to stub system calls ? devnux Programming 6 06-07-2008 03:39 AM
Sendmail user name format with @domain.com jcumins Linux - Server 0 10-11-2007 12:56 PM
need ip address and gateway in a particular format lothario Linux - Networking 3 05-06-2006 09:45 AM
what 's the difference between gdbserver and debugging stub? linuxpion Linux - General 0 03-06-2004 11:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:26 AM.

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