summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-discuss/20120522/007386.html
diff options
context:
space:
mode:
Diffstat (limited to 'zarb-ml/mageia-discuss/20120522/007386.html')
-rw-r--r--zarb-ml/mageia-discuss/20120522/007386.html154
1 files changed, 154 insertions, 0 deletions
diff --git a/zarb-ml/mageia-discuss/20120522/007386.html b/zarb-ml/mageia-discuss/20120522/007386.html
new file mode 100644
index 000000000..8c851813e
--- /dev/null
+++ b/zarb-ml/mageia-discuss/20120522/007386.html
@@ -0,0 +1,154 @@
+<!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=%3Cadeac79558b5910f7bdce2758b08bee4.squirrel%40mail.rmail.be%3E">
+ <META NAME="robots" CONTENT="index,nofollow">
+ <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
+ <LINK REL="Previous" HREF="007385.html">
+ <LINK REL="Next" HREF="007387.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[Mageia-discuss] Temporarily changing IP address</H1>
+ <B>AL13N</B>
+ <A HREF="mailto:mageia-discuss%40mageia.org?Subject=Re%3A%20%5BMageia-discuss%5D%20Temporarily%20changing%20IP%20address&In-Reply-To=%3Cadeac79558b5910f7bdce2758b08bee4.squirrel%40mail.rmail.be%3E"
+ TITLE="[Mageia-discuss] Temporarily changing IP address">alien at rmail.be
+ </A><BR>
+ <I>Tue May 22 17:59:59 CEST 2012</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="007385.html">[Mageia-discuss] Temporarily changing IP address
+</A></li>
+ <LI>Next message: <A HREF="007387.html">[Mageia-discuss] Temporarily changing IP address
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#7386">[ date ]</a>
+ <a href="thread.html#7386">[ thread ]</a>
+ <a href="subject.html#7386">[ subject ]</a>
+ <a href="author.html#7386">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>&gt;<i> On 22/05/12 15:08, AL13N wrote:
+</I>&gt;&gt;&gt;&gt;&gt;<i> No :-( No difference, even though I restarted the network
+</I>&gt;&gt;&gt;&gt;&gt;<i> service,
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i> Lets start from scratch.
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i> But first, can you tell me the ip address of the NAS and your
+</I>&gt;&gt;&gt;<i> laptop's IP address for eth0.
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i> After making note of these, put the laptop back to it's original
+</I>&gt;&gt;&gt;<i> config. (i.e. remove the manually created interface) and set
+</I>&gt;&gt;&gt;<i> wlan0 not to come up on reboot. Then restart so you only have an
+</I>&gt;&gt;&gt;<i> ip address on eth0.
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i> Then send me the info.
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i> Doug
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> in fact, if we want it to be even simpler, you could add the ip
+</I>&gt;&gt;<i> address without a alias interface wit iproute2
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> []# ip addr show eth0
+</I>&gt;<i>
+</I>&gt;<i> # ip addr show eth0
+</I>&gt;<i> 2: eth0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast
+</I>&gt;<i> state UP qlen 1000
+</I>&gt;<i> link/ether 1c:75:08:28:bd:e4 brd ff:ff:ff:ff:ff:ff
+</I>&gt;<i> inet 169.254.100.1/24 brd 169.254.100.255 scope global eth0
+</I>&gt;<i> inet6 fe80::1e75:8ff:fe28:bde4/64 scope link
+</I>&gt;<i> valid_lft forever preferred_lft forever
+</I>&gt;<i>
+</I>&gt;&gt;<i> []# ip addr add www.xxx.yyy.zzz/netmask dev eth0
+</I>&gt;<i>
+</I>&gt;<i> # ip addr add www.192.168.0.20/255.255.255.0 dev eth0
+</I>&gt;<i> Error: an inet prefix is expected rather than
+</I>&gt;<i> &quot;www.192.168.0.20/255.255.255.0&quot;.
+</I>&gt;<i>
+</I>&gt;<i> Not sure what it is expecting.
+</I>
+hum, i meant the socalled CIDR notation: 4 parts of ip address followed by
+a subnet mask,
+
+in your case, i'd do:
+
+[]# ip addr add 192.168.0.20/24 dev eth0
+
+then if you do
+
+[]# ip addr show eth0
+
+again, you'd see it was there, as well as the extra route for that range:
+
+[]# ip route
+
+
+&gt;&gt;<i>
+</I>&gt;&gt;<i> this will add an ip address on that interface, and
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> []# ip route
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> if you're done:
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> []# ip addr del www.xxx.yyy.zzz/netmask dev eth0
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> should now show you a route into that different subnet
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> this means, no mess with alias interfaces or separate settings, or
+</I>&gt;&gt;<i> anything.
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> to be sure, restart shorewall service (in the event it filters on
+</I>&gt;&gt;<i> the interface ip addresses)
+</I>&gt;<i>
+</I>&gt;<i> Shorewall and iptables are currently stopped.
+</I>
+Be careful of this, in your case, it might not matter, but shorewall stop
+has policy DROP, (i think), allthough iptables should have policy ACCEPT.
+
+so, you'd have to stop shorewall first, then stop iptables.
+
+personally, i'd rather not stop the firewall, due to security reasons
+though. but since with this solution, you don't have any extra interface,
+even just restarting it would be fine.
+
+if you want to debug even further:
+
+[]# tcpdump -n -i eth0 host &lt;nas_ip&gt;
+
+and try to connect and then you can see what sourceip and destip are set
+and if a reply is coming back.
+
+</PRE>
+
+
+
+
+
+
+
+
+
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+ <LI>Previous message: <A HREF="007385.html">[Mageia-discuss] Temporarily changing IP address
+</A></li>
+ <LI>Next message: <A HREF="007387.html">[Mageia-discuss] Temporarily changing IP address
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#7386">[ date ]</a>
+ <a href="thread.html#7386">[ thread ]</a>
+ <a href="subject.html#7386">[ subject ]</a>
+ <a href="author.html#7386">[ 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>