Confused about static IP address (16.04) (may be lubuntu)

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












Here is what my /etc/network/interfaces looks like:



# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback


However, if I use the GUI by...



  • clicking on the network connection near the clock,

  • clicking Edit Connections

  • selecting the only choice in the list (in my case wired connection 1)

  • picking Edit

  • picking the IPv4 tab

I see a static 192.168.1.96 with a netmask of 24 and a gateway of 192.168.1.2.



connection info and config in screenshot



  • First off, how is it possible I have a netmask of 24? Shouldn't it be 255,255,255,0?

  • Secondly, I no longer have any device at that gateway address (I did have till last week, but it is now gone) and my browser still works to get to the internet.`

  • Third, where is this information stored if not in the /etc/network/interfaces` file?

Just for completeness, here are the results of ifconfig:



$ ifconfig
enp2s2 Link encap:Ethernet HWaddr 00:11:d8:39:2e:13
inet addr:192.168.1.96 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::211:d8ff:fe39:2e13/64 Scope:Link
inet6 addr: 2601:602:67f:f5c0:d0e2:7433:1cd5:d227/64 Scope:Global
inet6 addr: 2601:602:67f:f5c0:211:d8ff:fe39:2e13/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:720843 errors:0 dropped:361 overruns:0 frame:0
TX packets:394690 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:254038082 (254.0 MB) TX bytes:110719667 (110.7 MB)

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:65536 Metric:1
RX packets:999968 errors:0 dropped:0 overruns:0 frame:0
TX packets:999968 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:323242248 (323.2 MB) TX bytes:323242248 (323.2 MB)









share|improve this question























  • 1. aelius.com/njh/subnet_sheet.html 2. How should anyone know? 3. /etc/NetworkManager/system-connections/...
    – mikewhatever
    Feb 16 at 19:42










  • @mikewhatever thanks for the link to that useful cheat sheet!
    – Organic Marble
    Feb 16 at 19:52














up vote
0
down vote

favorite












Here is what my /etc/network/interfaces looks like:



# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback


However, if I use the GUI by...



  • clicking on the network connection near the clock,

  • clicking Edit Connections

  • selecting the only choice in the list (in my case wired connection 1)

  • picking Edit

  • picking the IPv4 tab

I see a static 192.168.1.96 with a netmask of 24 and a gateway of 192.168.1.2.



connection info and config in screenshot



  • First off, how is it possible I have a netmask of 24? Shouldn't it be 255,255,255,0?

  • Secondly, I no longer have any device at that gateway address (I did have till last week, but it is now gone) and my browser still works to get to the internet.`

  • Third, where is this information stored if not in the /etc/network/interfaces` file?

Just for completeness, here are the results of ifconfig:



$ ifconfig
enp2s2 Link encap:Ethernet HWaddr 00:11:d8:39:2e:13
inet addr:192.168.1.96 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::211:d8ff:fe39:2e13/64 Scope:Link
inet6 addr: 2601:602:67f:f5c0:d0e2:7433:1cd5:d227/64 Scope:Global
inet6 addr: 2601:602:67f:f5c0:211:d8ff:fe39:2e13/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:720843 errors:0 dropped:361 overruns:0 frame:0
TX packets:394690 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:254038082 (254.0 MB) TX bytes:110719667 (110.7 MB)

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:65536 Metric:1
RX packets:999968 errors:0 dropped:0 overruns:0 frame:0
TX packets:999968 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:323242248 (323.2 MB) TX bytes:323242248 (323.2 MB)









share|improve this question























  • 1. aelius.com/njh/subnet_sheet.html 2. How should anyone know? 3. /etc/NetworkManager/system-connections/...
    – mikewhatever
    Feb 16 at 19:42










  • @mikewhatever thanks for the link to that useful cheat sheet!
    – Organic Marble
    Feb 16 at 19:52












up vote
0
down vote

favorite









up vote
0
down vote

favorite











Here is what my /etc/network/interfaces looks like:



# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback


However, if I use the GUI by...



  • clicking on the network connection near the clock,

  • clicking Edit Connections

  • selecting the only choice in the list (in my case wired connection 1)

  • picking Edit

  • picking the IPv4 tab

I see a static 192.168.1.96 with a netmask of 24 and a gateway of 192.168.1.2.



connection info and config in screenshot



  • First off, how is it possible I have a netmask of 24? Shouldn't it be 255,255,255,0?

  • Secondly, I no longer have any device at that gateway address (I did have till last week, but it is now gone) and my browser still works to get to the internet.`

  • Third, where is this information stored if not in the /etc/network/interfaces` file?

Just for completeness, here are the results of ifconfig:



$ ifconfig
enp2s2 Link encap:Ethernet HWaddr 00:11:d8:39:2e:13
inet addr:192.168.1.96 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::211:d8ff:fe39:2e13/64 Scope:Link
inet6 addr: 2601:602:67f:f5c0:d0e2:7433:1cd5:d227/64 Scope:Global
inet6 addr: 2601:602:67f:f5c0:211:d8ff:fe39:2e13/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:720843 errors:0 dropped:361 overruns:0 frame:0
TX packets:394690 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:254038082 (254.0 MB) TX bytes:110719667 (110.7 MB)

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:65536 Metric:1
RX packets:999968 errors:0 dropped:0 overruns:0 frame:0
TX packets:999968 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:323242248 (323.2 MB) TX bytes:323242248 (323.2 MB)









share|improve this question















Here is what my /etc/network/interfaces looks like:



# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback


However, if I use the GUI by...



  • clicking on the network connection near the clock,

  • clicking Edit Connections

  • selecting the only choice in the list (in my case wired connection 1)

  • picking Edit

  • picking the IPv4 tab

I see a static 192.168.1.96 with a netmask of 24 and a gateway of 192.168.1.2.



connection info and config in screenshot



  • First off, how is it possible I have a netmask of 24? Shouldn't it be 255,255,255,0?

  • Secondly, I no longer have any device at that gateway address (I did have till last week, but it is now gone) and my browser still works to get to the internet.`

  • Third, where is this information stored if not in the /etc/network/interfaces` file?

Just for completeness, here are the results of ifconfig:



$ ifconfig
enp2s2 Link encap:Ethernet HWaddr 00:11:d8:39:2e:13
inet addr:192.168.1.96 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::211:d8ff:fe39:2e13/64 Scope:Link
inet6 addr: 2601:602:67f:f5c0:d0e2:7433:1cd5:d227/64 Scope:Global
inet6 addr: 2601:602:67f:f5c0:211:d8ff:fe39:2e13/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:720843 errors:0 dropped:361 overruns:0 frame:0
TX packets:394690 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:254038082 (254.0 MB) TX bytes:110719667 (110.7 MB)

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:65536 Metric:1
RX packets:999968 errors:0 dropped:0 overruns:0 frame:0
TX packets:999968 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:323242248 (323.2 MB) TX bytes:323242248 (323.2 MB)






networking static-ip






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 18 at 18:53









Zanna

48.2k13120228




48.2k13120228










asked Feb 16 at 19:30









Cool Javelin

615




615











  • 1. aelius.com/njh/subnet_sheet.html 2. How should anyone know? 3. /etc/NetworkManager/system-connections/...
    – mikewhatever
    Feb 16 at 19:42










  • @mikewhatever thanks for the link to that useful cheat sheet!
    – Organic Marble
    Feb 16 at 19:52
















  • 1. aelius.com/njh/subnet_sheet.html 2. How should anyone know? 3. /etc/NetworkManager/system-connections/...
    – mikewhatever
    Feb 16 at 19:42










  • @mikewhatever thanks for the link to that useful cheat sheet!
    – Organic Marble
    Feb 16 at 19:52















1. aelius.com/njh/subnet_sheet.html 2. How should anyone know? 3. /etc/NetworkManager/system-connections/...
– mikewhatever
Feb 16 at 19:42




1. aelius.com/njh/subnet_sheet.html 2. How should anyone know? 3. /etc/NetworkManager/system-connections/...
– mikewhatever
Feb 16 at 19:42












@mikewhatever thanks for the link to that useful cheat sheet!
– Organic Marble
Feb 16 at 19:52




@mikewhatever thanks for the link to that useful cheat sheet!
– Organic Marble
Feb 16 at 19:52










1 Answer
1






active

oldest

votes

















up vote
0
down vote













  1. Netmask /24 is the same as 255.255.255.0 by another nomenclature

  2. Some one manually setup your IP address to 192.168.1.96 and the gateway to 192.168.1.2

  3. Try snooping into the directory /etc/network/interfaces.d/*





share|improve this answer




















  • O.K. I will research the /24 thingy. Yes, once upon a time I did set a static address. The /etc/network/interfaces.d directory is empty.
    – Cool Javelin
    Feb 19 at 19:01











  • It is now likely I won't know as I removed the static info from the GUI and I am able to set the IP via the router. Thanks for your help. @Stephen
    – Cool Javelin
    Feb 19 at 19:06










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1006878%2fconfused-about-static-ip-address-16-04-may-be-lubuntu%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













  1. Netmask /24 is the same as 255.255.255.0 by another nomenclature

  2. Some one manually setup your IP address to 192.168.1.96 and the gateway to 192.168.1.2

  3. Try snooping into the directory /etc/network/interfaces.d/*





share|improve this answer




















  • O.K. I will research the /24 thingy. Yes, once upon a time I did set a static address. The /etc/network/interfaces.d directory is empty.
    – Cool Javelin
    Feb 19 at 19:01











  • It is now likely I won't know as I removed the static info from the GUI and I am able to set the IP via the router. Thanks for your help. @Stephen
    – Cool Javelin
    Feb 19 at 19:06














up vote
0
down vote













  1. Netmask /24 is the same as 255.255.255.0 by another nomenclature

  2. Some one manually setup your IP address to 192.168.1.96 and the gateway to 192.168.1.2

  3. Try snooping into the directory /etc/network/interfaces.d/*





share|improve this answer




















  • O.K. I will research the /24 thingy. Yes, once upon a time I did set a static address. The /etc/network/interfaces.d directory is empty.
    – Cool Javelin
    Feb 19 at 19:01











  • It is now likely I won't know as I removed the static info from the GUI and I am able to set the IP via the router. Thanks for your help. @Stephen
    – Cool Javelin
    Feb 19 at 19:06












up vote
0
down vote










up vote
0
down vote









  1. Netmask /24 is the same as 255.255.255.0 by another nomenclature

  2. Some one manually setup your IP address to 192.168.1.96 and the gateway to 192.168.1.2

  3. Try snooping into the directory /etc/network/interfaces.d/*





share|improve this answer












  1. Netmask /24 is the same as 255.255.255.0 by another nomenclature

  2. Some one manually setup your IP address to 192.168.1.96 and the gateway to 192.168.1.2

  3. Try snooping into the directory /etc/network/interfaces.d/*






share|improve this answer












share|improve this answer



share|improve this answer










answered Feb 16 at 20:30









Stephen Fox

215




215











  • O.K. I will research the /24 thingy. Yes, once upon a time I did set a static address. The /etc/network/interfaces.d directory is empty.
    – Cool Javelin
    Feb 19 at 19:01











  • It is now likely I won't know as I removed the static info from the GUI and I am able to set the IP via the router. Thanks for your help. @Stephen
    – Cool Javelin
    Feb 19 at 19:06
















  • O.K. I will research the /24 thingy. Yes, once upon a time I did set a static address. The /etc/network/interfaces.d directory is empty.
    – Cool Javelin
    Feb 19 at 19:01











  • It is now likely I won't know as I removed the static info from the GUI and I am able to set the IP via the router. Thanks for your help. @Stephen
    – Cool Javelin
    Feb 19 at 19:06















O.K. I will research the /24 thingy. Yes, once upon a time I did set a static address. The /etc/network/interfaces.d directory is empty.
– Cool Javelin
Feb 19 at 19:01





O.K. I will research the /24 thingy. Yes, once upon a time I did set a static address. The /etc/network/interfaces.d directory is empty.
– Cool Javelin
Feb 19 at 19:01













It is now likely I won't know as I removed the static info from the GUI and I am able to set the IP via the router. Thanks for your help. @Stephen
– Cool Javelin
Feb 19 at 19:06




It is now likely I won't know as I removed the static info from the GUI and I am able to set the IP via the router. Thanks for your help. @Stephen
– Cool Javelin
Feb 19 at 19:06

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1006878%2fconfused-about-static-ip-address-16-04-may-be-lubuntu%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Which professions warranted travel in Medieval times?

How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

Trouble downloading packages list due to a “Hash sum mismatch” error