diff options
Diffstat (limited to 'zarb-ml/mageia-discuss/20120522/007386.html')
-rw-r--r-- | zarb-ml/mageia-discuss/20120522/007386.html | 154 |
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>><i> On 22/05/12 15:08, AL13N wrote: +</I>>>>>><i> No :-( No difference, even though I restarted the network +</I>>>>>><i> service, +</I>>>><i> +</I>>>><i> Lets start from scratch. +</I>>>><i> +</I>>>><i> But first, can you tell me the ip address of the NAS and your +</I>>>><i> laptop's IP address for eth0. +</I>>>><i> +</I>>>><i> After making note of these, put the laptop back to it's original +</I>>>><i> config. (i.e. remove the manually created interface) and set +</I>>>><i> wlan0 not to come up on reboot. Then restart so you only have an +</I>>>><i> ip address on eth0. +</I>>>><i> +</I>>>><i> Then send me the info. +</I>>>><i> +</I>>>><i> Doug +</I>>><i> +</I>>><i> in fact, if we want it to be even simpler, you could add the ip +</I>>><i> address without a alias interface wit iproute2 +</I>>><i> +</I>>><i> []# ip addr show eth0 +</I>><i> +</I>><i> # ip addr show eth0 +</I>><i> 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc 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 +</I>><i> inet 169.254.100.1/24 brd 169.254.100.255 scope global eth0 +</I>><i> inet6 fe80::1e75:8ff:fe28:bde4/64 scope link +</I>><i> valid_lft forever preferred_lft forever +</I>><i> +</I>>><i> []# ip addr add www.xxx.yyy.zzz/netmask dev eth0 +</I>><i> +</I>><i> # ip addr add www.192.168.0.20/255.255.255.0 dev eth0 +</I>><i> Error: an inet prefix is expected rather than +</I>><i> "www.192.168.0.20/255.255.255.0". +</I>><i> +</I>><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 + + +>><i> +</I>>><i> this will add an ip address on that interface, and +</I>>><i> +</I>>><i> []# ip route +</I>>><i> +</I>>><i> if you're done: +</I>>><i> +</I>>><i> []# ip addr del www.xxx.yyy.zzz/netmask dev eth0 +</I>>><i> +</I>>><i> should now show you a route into that different subnet +</I>>><i> +</I>>><i> this means, no mess with alias interfaces or separate settings, or +</I>>><i> anything. +</I>>><i> +</I>>><i> to be sure, restart shorewall service (in the event it filters on +</I>>><i> the interface ip addresses) +</I>><i> +</I>><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 <nas_ip> + +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> |