4

I am on a network with PPPoE connection for internet acces.I want to find out my network ipv4. Example:

-on Windows 7 I can see both my PPPoE's connection ip and local network ip, either from properties of the connection, either from cmd with ipconfig command

-on ubuntu I can only see the PPPoE's ip

I cam across this problem after trying to lookup another ubuntu pc on the network.

How can I check my Local area connection(Windows terms) ip and/or how to see the other ubuntu pc from my network?


If I connect to my DSL account I can see my ip(ipv4 and 6) from my DSL connection but not my eth0 ip.

If I connect to my Wired connection I can see my ip from my eth0 connection but after that I cannot connect to the internet.

I cannot have both?

4
  • 2
    I don't really understand your question, but you can see your IP address using ifconfig.
    – green
    Mar 25, 2013 at 12:30
  • I can see my PPPoE(DSL connection) ip, but I need my network(eth0) ip(ipv4 not ipv6).
    – adi
    Mar 25, 2013 at 12:36
  • that's why you use ifconfig....
    – Alvar
    Mar 25, 2013 at 13:31
  • actually if you would've looked on this page you would've guessed already that I know about the command ifconfig
    – adi
    Mar 25, 2013 at 14:29

3 Answers 3

13

In the top panel of Unity go to the Network Icon (Network Manager) and select Connection Information

enter image description here

You will see all the information including the IP (IPv4 and IPv6) of any device connected. In this case it is only showing one device since I have only one connected, but if I had multiple ones it would show each one on a different tab:

enter image description here

For the terminal way you can do like Mitch mentions. Open a terminal and type ifconfig which will show you several network devices like the following:

enter image description here

In your case, instead of seeing wlan0 like in my image, you will see something like ppp0. If you want to see specific information about your PPP connection then do something like this: ifconfig ppp0.

Looking at your images we have the following:

enter image description here

This image shows the IP you are receiving from Internet (From outside of your LAN network). In this case it is the 10.40.26.151

enter image description here

This image shows the IP you are receiving from LAN (From inside of your LAN network). In this case it is the 192.168.2.160 and the Router or Server IP that is assigning you that IP is 192.168.2.1.

Now looking at both images I see you are using eth0 for both cases. If this is the same computer then I recommend connecting ppp0 to another network card and eth0 to the LAN if you want to have both types of connection. You can only have one type of connection per network device.

7
  • look at my comment on the upper answer
    – adi
    Mar 25, 2013 at 12:55
  • @adi updated to explain your images. Also I would like to know if you are disconnecting the ppp connection to connect the LAN one and vice versa. I ask since I see you are using the same network device for both. Mar 25, 2013 at 13:22
  • yes Luis,that is what I did.
    – adi
    Mar 25, 2013 at 14:43
  • @adi Then you need another network card. One network card for you LAN connection and the other one for your PPP connection. This way you get on the same computer the IPv4 address for your LAN and the IP address for your PPP internet connection.If you already have 2 network cards, then can you please tell me all the network cards mentioned when using ifconfig. For example I have eth0 and wlan0. I will also suggest to connect you PPP connection to your router, the one that is assigning you the 192.168.2.x IP. That way, the router will give you internet and LAN connection in one network device. Mar 25, 2013 at 14:51
  • I cannot acces the router since I'm on an university campus network and we do not have acces to router management.I have both lan and wireless cards.
    – adi
    Mar 25, 2013 at 15:02
5

You can do so by clicking on the network icon on the top right bar, and choose edit connections. Once the new window opens, click on the Edit button, and that will take you to the network properties page, you can then click on IPv4 settings to see the info.

OR

Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command below:

ifconfig

enter image description here

enter image description here

enter image description here

2
  • So help me understand this, If I connect to my dsl account I have internet connection but no ipv4 on eth0, and if I connect to my "Wired connection" I have ipv4 on eth0 and no internet connection.
    – adi
    Mar 25, 2013 at 12:43
  • My ips with eth0 and ppp0 connections imageshack.us/g/1/10076463
    – adi
    Mar 25, 2013 at 12:54
4

ifconfig is being deprecated. It is suggested to use the ip command.

For example:

enter image description here

Also, if you are behind NAT you may wish to use an external service to find your public IP address. curl icanhazip.com will return that for you.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .