summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-discuss/20120522/007385.html
blob: 6ee1cd4612287217e50b0ac3fcd0af22515e868f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<!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=%3C4FBBA421.20207%40kde.org%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="007383.html">
   <LINK REL="Next"  HREF="007386.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=%3C4FBBA421.20207%40kde.org%3E"
       TITLE="[Mageia-discuss] Temporarily changing IP address">annew at kde.org
       </A><BR>
    <I>Tue May 22 16:35:13 CEST 2012</I>
    <P><UL>
        <LI>Previous message: <A HREF="007383.html">[Mageia-discuss] Temporarily changing IP address
</A></li>
        <LI>Next message: <A HREF="007386.html">[Mageia-discuss] Temporarily changing IP address
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#7385">[ date ]</a>
              <a href="thread.html#7385">[ thread ]</a>
              <a href="subject.html#7385">[ subject ]</a>
              <a href="author.html#7385">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 22/05/12 15:08, AL13N wrote:
&gt;&gt;&gt;&gt;<i> No :-(  No difference, even though I restarted the network
</I>&gt;&gt;&gt;&gt;<i> service,
</I>&gt;&gt;<i> 
</I>&gt;&gt;<i> Lets start from scratch.
</I>&gt;&gt;<i> 
</I>&gt;&gt;<i> But first, can you tell me the ip address of the NAS and your
</I>&gt;&gt;<i> laptop's IP address for eth0.
</I>&gt;&gt;<i> 
</I>&gt;&gt;<i> After making note of these, put the laptop back to it's original
</I>&gt;&gt;<i> config. (i.e. remove the manually created interface) and set
</I>&gt;&gt;<i> wlan0 not to come up on reboot.  Then restart so you only have an
</I>&gt;&gt;<i> ip address on eth0.
</I>&gt;&gt;<i> 
</I>&gt;&gt;<i> Then send me the info.
</I>&gt;&gt;<i> 
</I>&gt;&gt;<i> Doug
</I>&gt;<i> 
</I>&gt;<i> in fact, if we want it to be even simpler, you could add the ip
</I>&gt;<i> address without a alias interface wit iproute2
</I>&gt;<i> 
</I>&gt;<i> []# ip addr show eth0
</I>
# ip addr show eth0
2: eth0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast
state UP qlen 1000
    link/ether 1c:75:08:28:bd:e4 brd ff:ff:ff:ff:ff:ff
    inet 169.254.100.1/24 brd 169.254.100.255 scope global eth0
    inet6 fe80::1e75:8ff:fe28:bde4/64 scope link
       valid_lft forever preferred_lft forever

&gt;<i> []# ip addr add www.xxx.yyy.zzz/netmask dev eth0
</I>
# ip addr add www.192.168.0.20/255.255.255.0 dev eth0
Error: an inet prefix is expected rather than
&quot;www.192.168.0.20/255.255.255.0&quot;.

Not sure what it is expecting.
&gt;<i> 
</I>&gt;<i> this will add an ip address on that interface, and
</I>&gt;<i> 
</I>&gt;<i> []# ip route
</I>&gt;<i> 
</I>&gt;<i> if you're done:
</I>&gt;<i> 
</I>&gt;<i> []# ip addr del www.xxx.yyy.zzz/netmask dev eth0
</I>&gt;<i> 
</I>&gt;<i> should now show you a route into that different subnet
</I>&gt;<i> 
</I>&gt;<i> this means, no mess with alias interfaces or separate settings, or
</I>&gt;<i> anything.
</I>&gt;<i> 
</I>&gt;<i> to be sure, restart shorewall service (in the event it filters on
</I>&gt;<i> the interface ip addresses)
</I>
Shorewall and iptables are currently stopped.

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+7pCAACgkQj93fyh4cnBd1ogCaAyQMaAzwZ5YEFVTExM0pU2q4
HiYAnim994jDweytPufhyzaCcKngZpnw
=BsWC
-----END PGP SIGNATURE-----
</PRE>










<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="007383.html">[Mageia-discuss] Temporarily changing IP address
</A></li>
	<LI>Next message: <A HREF="007386.html">[Mageia-discuss] Temporarily changing IP address
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#7385">[ date ]</a>
              <a href="thread.html#7385">[ thread ]</a>
              <a href="subject.html#7385">[ subject ]</a>
              <a href="author.html#7385">[ 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>