diff options
Diffstat (limited to 'zarb-ml/mageia-discuss/20120522/007398.html')
-rw-r--r-- | zarb-ml/mageia-discuss/20120522/007398.html | 185 |
1 files changed, 185 insertions, 0 deletions
diff --git a/zarb-ml/mageia-discuss/20120522/007398.html b/zarb-ml/mageia-discuss/20120522/007398.html new file mode 100644 index 000000000..83f3e088a --- /dev/null +++ b/zarb-ml/mageia-discuss/20120522/007398.html @@ -0,0 +1,185 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<HTML> + <HEAD> + <TITLE> [Mageia-discuss] Temporarily changing IP address + </TITLE> + <LINK REL="Index" HREF="index.html" > + <LINK REL="made" HREF="mailto:mageia-discuss%40mageia.org?Subject=Re%3A%20%5BMageia-discuss%5D%20Temporarily%20changing%20IP%20address&In-Reply-To=%3C4FBBDA33.4040809%40kde.org%3E"> + <META NAME="robots" CONTENT="index,nofollow"> + <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> + <LINK REL="Previous" HREF="007395.html"> + <LINK REL="Next" HREF="007399.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[Mageia-discuss] Temporarily changing IP address</H1> + <B>Anne Wilson</B> + <A HREF="mailto:mageia-discuss%40mageia.org?Subject=Re%3A%20%5BMageia-discuss%5D%20Temporarily%20changing%20IP%20address&In-Reply-To=%3C4FBBDA33.4040809%40kde.org%3E" + TITLE="[Mageia-discuss] Temporarily changing IP address">annew at kde.org + </A><BR> + <I>Tue May 22 20:25:55 CEST 2012</I> + <P><UL> + <LI>Previous message: <A HREF="007395.html">[Mageia-discuss] Temporarily changing IP address +</A></li> + <LI>Next message: <A HREF="007399.html">[Mageia-discuss] Temporarily changing IP address +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#7398">[ date ]</a> + <a href="thread.html#7398">[ thread ]</a> + <a href="subject.html#7398">[ subject ]</a> + <a href="author.html#7398">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +On 22/05/12 18:51, AL13N wrote: + +>><i> On 22/05/12 16:59, AL13N wrote: +</I>>>>><i> On 22/05/12 15:08, AL13N wrote: +</I>>>><i> +</I>>><i> Meanwhile, I played with alternatives, knowing that it must be +</I>>><i> something close to what I'd already tried. So, +</I>>><i> +</I>>><i> # ip addr add 192.168.0.20/255.255.255.0 dev eth0 # ip addr show +</I>>><i> eth0 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc +</I>>><i> pfifo_fast +</I>><i> state UP qlen 1000 +</I>>><i> link/ether 1c:75:08:28:bd:e4 brd ff:ff:ff:ff:ff:ff inet +</I>>><i> 169.254.100.1/24 brd 169.254.100.255 scope global eth0 inet +</I>>><i> 192.168.0.20/24 scope global eth0 inet6 +</I>>><i> fe80::1e75:8ff:fe28:bde4/64 scope link valid_lft forever +</I>>><i> preferred_lft forever +</I>>><i> +</I>>><i> So now it appears to have two addresses, preferring the wrong +</I>>><i> one. +</I>><i> +</I>><i> +</I>><i> by preferring, you mean the top one? +</I>><i> +</I>I take it that the 169.254.100.1 is the preferred one - by the system, +that is. I don't even know where it is getting this now, as I renamed +the config file that gave rise to it, so it shouldn't even be read now. +><i> +</I> +>>><i> +</I>>><i> # ip route default via 192.168.0.1 dev eth1 proto static default +</I>>><i> via 169.254.100.100 dev eth0 metric 10 default via 192.168.0.1 +</I>>><i> dev eth1 metric 10 169.254.100.0/24 dev eth0 proto kernel +</I>>><i> scope link src 169.254.100.1 metric 10 192.168.0.0/24 dev eth1 +</I>>><i> proto kernel scope link src 192.168.0.101 +</I>><i> 192.168.0.0/24 dev eth0 proto kernel scope link src +</I>><i> 192.168.0.20 +</I>><i> +</I>><i> +</I>><i> whoa, 3 default routes? over different interfaces... +</I>><i> +</I>><i> you have 192.168.0.0/24 network, both reachable over eth1 and eth0, +</I>><i> i hope that is what you want... +</I>><i> +</I>I don't want 169.254.100.0/24 at all. +The other two I do want - I simply stop the wireless one when I have a +convenient cabled connection. The cabled connection has a static IP, +the wireless one has dhcp (the static address is not in the dhcp range). +><i> +</I>>><i> Last question, then, is whether this is a permanent change? +</I>><i> +</I>><i> ip command is never permanent, you have to change the config files +</I>><i> if you want permanent changes (ie: after reboot). +</I>><i> +</I>But...but...but... + +ifcfg-eth0:temp is now ifcfg-eth0:temp.sav so shouldn't be being read. + I'm going to delete it altogether now. + +ifcfg-eth0 is currently + +EVICE=eth0 +BOOTPROTO=static +IPADDR=192.168.0.20 +NETMASK=255.255.255.0 +GATEWAY=192.168.0.1 +ONBOOT=yes +METRIC=10 +MII_NOT_SUPPORTED=no +USERCTL=yes +DNS1=212.23.3.100 +DNS2=212.23.6.100 +RESOLV_MODS=no +IPV6INIT=no +IPV6TO4INIT=no +ACCOUNTING=no +NM_CONTROLLED=no +UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03 +NAME="System eth0" + +ifcfg-eth1 is + +DEVICE=eth1 +BOOTPROTO=dhcp +ONBOOT=no +METRIC=35 +MII_NOT_SUPPORTED=no +USERCTL=yes +DNS1=212.23.3.100 +DNS2=212.23.6.100 +RESOLV_MODS=yes +WIRELESS_MODE=Managed +WIRELESS_ESSID=xxxxx +WIRELESS_ENC_KEY=s:xxxxx +WIRELESS_WPA_DRIVER=wext +WIRELESS_WPA_REASSOCIATE=no +IPV6INIT=no +IPV6TO4INIT=no +ACCOUNTING=no +NM_CONTROLLED=yes +DHCP_CLIENT=dhclient +NEEDHOSTNAME=no +PEERDNS=no +PEERYP=yes +PEERNTPD=no + +You'll see that I have now set this to not connect on boot. When the +current batch of files finish copying over I'll reboot, with the +temporary cfg deleted and the change to ifcfg-eth1. I'll let you know +what happens. + +Anne +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.12 (GNU/Linux) +Comment: Using GnuPG with Mozilla - <A HREF="http://enigmail.mozdev.org/">http://enigmail.mozdev.org/</A> + +iEYEARECAAYFAk+72jIACgkQj93fyh4cnBex3wCfcRXxPmy2COty8CjcQE11AVYN +q54AoIPZgYVInWZl93ehSB4rm5NQPfZl +=nIRF +-----END PGP SIGNATURE----- +</PRE> + + + + + + + + +<!--endarticle--> + <HR> + <P><UL> + <!--threads--> + <LI>Previous message: <A HREF="007395.html">[Mageia-discuss] Temporarily changing IP address +</A></li> + <LI>Next message: <A HREF="007399.html">[Mageia-discuss] Temporarily changing IP address +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#7398">[ date ]</a> + <a href="thread.html#7398">[ thread ]</a> + <a href="subject.html#7398">[ subject ]</a> + <a href="author.html#7398">[ author ]</a> + </LI> + </UL> + +<hr> +<a href="https://www.mageia.org/mailman/listinfo/mageia-discuss">More information about the Mageia-discuss +mailing list</a><br> +</body></html> |