summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-discuss/20120522/007398.html
diff options
context:
space:
mode:
Diffstat (limited to 'zarb-ml/mageia-discuss/20120522/007398.html')
-rw-r--r--zarb-ml/mageia-discuss/20120522/007398.html185
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:
+
+&gt;&gt;<i> On 22/05/12 16:59, AL13N wrote:
+</I>&gt;&gt;&gt;&gt;<i> On 22/05/12 15:08, AL13N wrote:
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;<i> Meanwhile, I played with alternatives, knowing that it must be
+</I>&gt;&gt;<i> something close to what I'd already tried. So,
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> # ip addr add 192.168.0.20/255.255.255.0 dev eth0 # ip addr show
+</I>&gt;&gt;<i> eth0 2: eth0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc
+</I>&gt;&gt;<i> pfifo_fast
+</I>&gt;<i> state UP qlen 1000
+</I>&gt;&gt;<i> link/ether 1c:75:08:28:bd:e4 brd ff:ff:ff:ff:ff:ff inet
+</I>&gt;&gt;<i> 169.254.100.1/24 brd 169.254.100.255 scope global eth0 inet
+</I>&gt;&gt;<i> 192.168.0.20/24 scope global eth0 inet6
+</I>&gt;&gt;<i> fe80::1e75:8ff:fe28:bde4/64 scope link valid_lft forever
+</I>&gt;&gt;<i> preferred_lft forever
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> So now it appears to have two addresses, preferring the wrong
+</I>&gt;&gt;<i> one.
+</I>&gt;<i>
+</I>&gt;<i>
+</I>&gt;<i> by preferring, you mean the top one?
+</I>&gt;<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.
+&gt;<i>
+</I>
+&gt;&gt;&gt;<i>
+</I>&gt;&gt;<i> # ip route default via 192.168.0.1 dev eth1 proto static default
+</I>&gt;&gt;<i> via 169.254.100.100 dev eth0 metric 10 default via 192.168.0.1
+</I>&gt;&gt;<i> dev eth1 metric 10 169.254.100.0/24 dev eth0 proto kernel
+</I>&gt;&gt;<i> scope link src 169.254.100.1 metric 10 192.168.0.0/24 dev eth1
+</I>&gt;&gt;<i> proto kernel scope link src 192.168.0.101
+</I>&gt;<i> 192.168.0.0/24 dev eth0 proto kernel scope link src
+</I>&gt;<i> 192.168.0.20
+</I>&gt;<i>
+</I>&gt;<i>
+</I>&gt;<i> whoa, 3 default routes? over different interfaces...
+</I>&gt;<i>
+</I>&gt;<i> you have 192.168.0.0/24 network, both reachable over eth1 and eth0,
+</I>&gt;<i> i hope that is what you want...
+</I>&gt;<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).
+&gt;<i>
+</I>&gt;&gt;<i> Last question, then, is whether this is a permanent change?
+</I>&gt;<i>
+</I>&gt;<i> ip command is never permanent, you have to change the config files
+</I>&gt;<i> if you want permanent changes (ie: after reboot).
+</I>&gt;<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=&quot;System eth0&quot;
+
+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>