Questions tagged [ip]

IP or Internet Protocol. Use this tag for questions about IP addresses or configuration, or the protocol as applied to Ubuntu.

A protocol, or set of rules, for transmitting data over a network. IP does not describe how a network is physically set up, but instead how data are to be encoded to be transmitted over an existing physical network. IP handles packets from a source host to a destination host. It facilitates communicating between computers ("nodes") on interconnected networks, even when they are not on the same local network as each other, by routing data through the connections (or "gateways") between networks. This makes internetworking, including the global Internet, possible.

There are two versions of the Internet Protocol in use: IPv4 and IPv6. Most of the Internet still uses IPv4. Computers can be configured to use both, even on the same network interface, though most residential ISP's don't assign IPv6 addresses.

An IP address is a computer or other device's address on the network. An IPv4 address, often called just an "IP address," consists of 4 octets separated by dots. Each octet ranges from 0 to 254. An IPv6 address consists 64 hexadecimal digits, separated by colons into 8 groups of 8.

This tag is appropriate for questions about obtaining, assigning, or querying information about IP addresses and configuration in Ubuntu, or any other Ubuntu-related questions about the Internet Protocol. For Internet questions that are not about IP or IP addresses, use . For non-IP-related networking questions, use .

587 questions
65
votes
9 answers

How do I set a static IP in Ubuntu?

I am a new with Linux, having years experience with Windows servers/desktops and am having issues setting a static IP. I am using a method used for previous versions of Ubuntu, which doesn't seem to work with 16.04 I have used the command sudo nano…
TeeStar
  • 753
48
votes
11 answers

How to setup a static IP on Ubuntu Server 18.04

I've seen some people saying the file to set static ip is still /etc/network/interfaces And I've seen other people saying that in 18.04 it's now on /etc/netplan (which people seem unhappy about) I've tried putting this: version: 2 renderer:…
final20
  • 481
44
votes
6 answers

How to show (just) the IP address of my router?

What command can I run to get just the IP address of my router? With this command I should have only IP of my router and not, for example, the whole routing table (as when I run route -n).
kaio
  • 677
41
votes
19 answers

How to display IP address of eth0 interface using a shell script?

How can I display the IP address shown on eth0 using a script ?
user43389
  • 673
39
votes
5 answers

What is the equivalent terminal command to ipconfig /all?

In windows I can use ipconfig /all and this displays all the info about my connection. In terminal using ifconfig does not and only supplies limited info. I can use network manager, but it would be useful to know the command line alternative. So my…
pst007x
  • 8,210
35
votes
3 answers

How to ssh into a server running on a home network, behind a router?

Okay, so I have a PC in my home network, running Ubuntu on a VM with openssh server installed. How can I remotely access it from another computer outside the home network, using the internet? What IP address do I use to connect to it? What kind of…
Hugo Lobo
  • 395
28
votes
3 answers

Public IP Address for LXC container

Ok, so I want to know how to do networking on LXC containers. Not just the sort of vague information you get from the other websites, but a true beginner's guide to making them work.. Since most examples are basically setup for people to test with,…
25
votes
8 answers

How do I get IP of installed network printer

I have installed a network printer in my Ubuntu 14.04 machine by using system-config-printer. This GUI program offers a "Find network printer" function, that explores the local network. It returns a list of printers names, associated with IP…
kebs
  • 612
24
votes
2 answers

How to change the default TTL of TCP/IP packets?

I need to change the default TTL of TCP/IP packets sent from my Ubuntu computer. I found the solution for Windows: To make reg-file: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\servic…
kostiamol
  • 353
24
votes
5 answers

How to use the terminal to change the IP address provided by Tor?

I have the Tor service, and I want to use the terminal to change the IP address which Tor gives me. In other words: How do I request a new IP address from Tor on the command line?
Austin
  • 425
  • 2
  • 4
  • 8
17
votes
7 answers

ping multiple IP's using bash?

I have 10 IP numbers which I have to ping daily for checking , How I can do that by using BASH script. So that I can automate that task by using cron. I want BASH script only. Thank you.
Raja G
  • 105,327
  • 107
  • 262
  • 331
17
votes
3 answers

I need to reset my computer's ip address to dhcp from static

I have been running a file server on Ubuntu for a couple of years now. Recently I had to take the network down. When I brought it back up, my server lost its ip address from the router. I can't remember how to put it back in the dhcp mode. I…
15
votes
5 answers

eth0 NO-CARRIER, ifconfig shows no IP address

I left Ubuntu and came back after a while so I don't remember much. Now I'm trying to get my IP address. All I'm getting from running ifconfig is eth0 Link encap:Ethernet HWaddr 3c:97:0e:11:22:0d UP BROADCAST MULTICAST MTU:1500 …
13
votes
2 answers

How to find the ASN of an IP using "dig" command?

How do I find what autonomous system number or name an IP address belongs to? Could I find it using Ubuntu's dig command?
sr1
  • 145
13
votes
1 answer

Change network mac address using "ip" command

Usually I would be able to change my wifi mac address with the ifconfig command like : ifconfig hw ether XX:XX:XX:XX:XX:XX Ubuntu have however deprecated ifconfig in behalf of the "ip" command, so I was wondering if there is an way to get…
kimusan
  • 281
1
2 3
39 40