Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ifconfig show wrong ip address
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
royalts
n00b
n00b


Joined: 06 Jan 2015
Posts: 39

PostPosted: Wed Nov 18, 2015 5:31 pm    Post subject: ifconfig show wrong ip address Reply with quote

my router obviously just crahsed. After a reboot ifconfig showd me:

Quote:

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 169.254.117.195 netmask 255.255.0.0 broadcast 169.254.255.255
inet6 fe80::ffe9:cc6b:82b:94eb prefixlen 64 scopeid 0x20<link>
inet6 fe80::a11:96ff:fe3d:1790 prefixlen 64 scopeid 0x20<link>
ether 08:11:96:3d:17:90 txqueuelen 1000 (Ethernet)
RX packets 8469744 bytes 12025143566 (11.1 GiB)
RX errors 0 dropped 5 overruns 0 frame 0
TX packets 4287730 bytes 390575216 (372.4 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0



That's quit strange because my network is at 192.168.0.1/8 So I got 8 bit for the devices but the 192.168.0 is static.

I executed
Code:
 dhcpcd wlan0

result:
Quote:

DUID 00:01:00:01:1a:84:2d:1b:08:11:96:3d:17:90
wlan0: IAID 96:3d:17:90
wlan0: rebinding lease of 192.168.0.181
wlan0: leased 192.168.0.181 for 3600 seconds
wlan0: changing route to 192.168.0.0/24
wlan0: changing default route via 192.168.0.1
forked to background, child pid 9037


But ifconfig show me the same resulut.
ps: wireshark confirmed the address: 192.168.0.181


Quote:

ronny-reiner-rambo royalts # cat /etc/conf.d/net
#Generated by NetworkManager
###### Global Configuration ######
modules_wlan0="wpa_supplicant"
config_wlan0="dhcp"
#wpa_supplicant_wlan0="-D wext -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf"

###### Connection Configuration ######
#----------------------------------
#dhcp_wlan0="release nodns nontp nonis"# neue eins weiter unten
dhcp_wlan0="release nodns nontp nonis"
#auto_wlan0="true"# neue eins weiter unten
auto_wlan0="true"
enable_ipv6_wlan0="false"
#config_wlan0=( "dhcp" )#neue eins weiter unten
#config_wlan0=( "dhcp" )
dhcpcd_wlan0="-t 5"
#----------------------------------
dhcp_eth0="release nodns nontp nonis"
auto_eth0="true"
enable_ipv6_eth0="false"
config_eth0=( "dhcp" )
dhcpcd_eth0="-t 2"
##### 4 avahi (zeroconf implementaion)
#config_wlan0=( autoipd )


# The network scripts are now part of net-misc/netifrc
# In order to avoid sys-apps/openrc-0.12 from removing this file, this comment was
# added; you can safely remove this comment. Please see
# /usr/share/doc/netifrc*/README* for more information.

Back to top
View user's profile Send private message
jburns
Veteran
Veteran


Joined: 18 Jan 2007
Posts: 1031
Location: Massachusetts USA

PostPosted: Wed Nov 18, 2015 7:55 pm    Post subject: Reply with quote

The address 169.254.117.195 is a local-link address that was generated when the router was down. See https://en.wikipedia.org/wiki/IP_address#Address_autoconfiguration
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 42564
Location: 56N 3W

PostPosted: Wed Nov 18, 2015 8:33 pm    Post subject: Reply with quote

royalts,

royalts wrote:
That's quit strange because my network is at 192.168.0.1/8 So I got 8 bit for the devices but the 192.168.0 is static.


Hopefully the /8 is a typo and you mean /24
192.168.0.1/8 would be 192. is fixed.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6737
Location: Blighty

PostPosted: Wed Nov 18, 2015 9:26 pm    Post subject: Reply with quote

Use the `ip a` command to see addresses. ifconfig on linux only shows the first IPv4 address and ignores any others.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum