summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-discuss/20120522/007394.html
blob: 4a245ace72b9120db2201a0d2dcf84e37a04c12b (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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
<!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=%3C4FBBD1FD.5040701%40kde.org%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="007387.html">
   <LINK REL="Next"  HREF="007396.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=%3C4FBBD1FD.5040701%40kde.org%3E"
       TITLE="[Mageia-discuss] Temporarily changing IP address">annew at kde.org
       </A><BR>
    <I>Tue May 22 19:50:53 CEST 2012</I>
    <P><UL>
        <LI>Previous message: <A HREF="007387.html">[Mageia-discuss] Temporarily changing IP address
</A></li>
        <LI>Next message: <A HREF="007396.html">[Mageia-discuss] Temporarily changing IP address
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#7394">[ date ]</a>
              <a href="thread.html#7394">[ thread ]</a>
              <a href="subject.html#7394">[ subject ]</a>
              <a href="author.html#7394">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 22/05/12 17:12, Anne Wilson wrote:
&gt;<i> On 22/05/12 16:59, AL13N wrote:
</I>&gt;&gt;&gt;<i> On 22/05/12 15:08, AL13N wrote:
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> No :-(  No difference, even though I restarted the 
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> network service,
</I>&gt;&gt;&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;&gt;&gt;<i> Lets start from scratch.
</I>&gt;&gt;&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;&gt;&gt;<i> But first, can you tell me the ip address of the NAS and 
</I>&gt;&gt;&gt;&gt;&gt;<i> your laptop's IP address for eth0.
</I>&gt;&gt;&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;&gt;&gt;<i> After making note of these, put the laptop back to it's 
</I>&gt;&gt;&gt;&gt;&gt;<i> original config. (i.e. remove the manually created
</I>&gt;&gt;&gt;&gt;&gt;<i> interface) and set wlan0 not to come up on reboot.  Then
</I>&gt;&gt;&gt;&gt;&gt;<i> restart so you only have an ip address on eth0.
</I>&gt;&gt;&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;&gt;&gt;<i> Then send me the info.
</I>&gt;&gt;&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;&gt;&gt;<i> Doug
</I>&gt;&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;&gt;<i> in fact, if we want it to be even simpler, you could add the 
</I>&gt;&gt;&gt;&gt;<i> ip address without a alias interface wit iproute2
</I>&gt;&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;&gt;<i> []# ip addr show eth0
</I>&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;<i> # ip addr show eth0 2: eth0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; 
</I>&gt;&gt;&gt;<i> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 
</I>&gt;&gt;&gt;<i> 1c:75:08:28:bd:e4 brd ff:ff:ff:ff:ff:ff inet 169.254.100.1/24
</I>&gt;&gt;&gt;<i> brd 169.254.100.255 scope global eth0 inet6 
</I>&gt;&gt;&gt;<i> fe80::1e75:8ff:fe28:bde4/64 scope link valid_lft forever 
</I>&gt;&gt;&gt;<i> preferred_lft forever
</I>&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;&gt;<i> []# ip addr add www.xxx.yyy.zzz/netmask dev eth0
</I>&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;<i> # ip addr add www.192.168.0.20/255.255.255.0 dev eth0 Error:
</I>&gt;&gt;&gt;<i> an inet prefix is expected rather than 
</I>&gt;&gt;&gt;<i> &quot;www.192.168.0.20/255.255.255.0&quot;.
</I>&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;<i> Not sure what it is expecting.
</I>&gt;<i> 
</I>&gt;&gt;<i> hum, i meant the socalled CIDR notation: 4 parts of ip address 
</I>&gt;&gt;<i> followed by a subnet mask,
</I>&gt;<i> 
</I>&gt;&gt;<i> in your case, i'd do:
</I>&gt;<i> 
</I>&gt;&gt;<i> []# ip addr add 192.168.0.20/24 dev eth0
</I>&gt;<i> 
</I>&gt;<i> Meanwhile, I played with alternatives, knowing that it must be 
</I>&gt;<i> something close to what I'd already tried.  So,
</I>&gt;<i> 
</I>&gt;<i> # ip addr add 192.168.0.20/255.255.255.0 dev eth0 # ip addr show
</I>&gt;<i> eth0 2: eth0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc
</I>&gt;<i> pfifo_fast state UP qlen 1000 link/ether 1c:75:08:28:bd:e4 brd
</I>&gt;<i> ff:ff:ff:ff:ff:ff inet 169.254.100.1/24 brd 169.254.100.255 scope
</I>&gt;<i> global eth0 inet 192.168.0.20/24 scope global eth0 inet6
</I>&gt;<i> fe80::1e75:8ff:fe28:bde4/64 scope link valid_lft forever
</I>&gt;<i> preferred_lft forever
</I>&gt;<i> 
</I>&gt;<i> So now it appears to have two addresses, preferring the wrong one.
</I>&gt;<i> 
</I>&gt;&gt;<i> then if you do
</I>&gt;<i> 
</I>&gt;&gt;<i> []# ip addr show eth0
</I>&gt;<i> 
</I>&gt;&gt;<i> again, you'd see it was there, as well as the extra route for
</I>&gt;&gt;<i> that range:
</I>&gt;<i> 
</I>&gt;&gt;<i> []# ip route
</I>&gt;<i> 
</I>&gt;<i> # ip route default via 192.168.0.1 dev eth1  proto static default
</I>&gt;<i> via 169.254.100.100 dev eth0  metric 10 default via 192.168.0.1 dev
</I>&gt;<i> eth1  metric 10 169.254.100.0/24 dev eth0  proto kernel  scope link
</I>&gt;<i> src 169.254.100.1 metric 10 192.168.0.0/24 dev eth1  proto kernel
</I>&gt;<i> scope link  src 192.168.0.101 192.168.0.0/24 dev eth0  proto kernel
</I>&gt;<i> scope link  src 192.168.0.20
</I>&gt;<i> 
</I>&gt;<i> ifconfig eth0      Link encap:Ethernet  HWaddr 1C:75:08:28:BD:E4 
</I>&gt;<i> inet addr:169.254.100.1  Bcast:169.254.100.255 Mask:255.255.255.0
</I>&gt;<i> 
</I>&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;<i> Shorewall and iptables are currently stopped.
</I>&gt;<i> 
</I>&gt;&gt;<i> Be careful of this, in your case, it might not matter, but 
</I>&gt;&gt;<i> shorewall stop has policy DROP, (i think), allthough iptables 
</I>&gt;&gt;<i> should have policy ACCEPT.
</I>&gt;<i> 
</I>&gt;&gt;<i> so, you'd have to stop shorewall first, then stop iptables.
</I>&gt;<i> 
</I>&gt;<i> That's the order I did it.
</I>&gt;<i> 
</I>&gt;&gt;<i> personally, i'd rather not stop the firewall, due to security 
</I>&gt;&gt;<i> reasons though. but since with this solution, you don't have any 
</I>&gt;&gt;<i> extra interface, even just restarting it would be fine.
</I>&gt;<i> 
</I>&gt;<i> Once I have a connection I'll restart them.
</I>&gt;<i> 
</I>&gt;&gt;<i> if you want to debug even further:
</I>&gt;<i> 
</I>&gt;&gt;<i> []# tcpdump -n -i eth0 host &lt;nas_ip&gt;
</I>&gt;<i> 
</I>&gt;<i> Where does that write to?  A log file?
</I>&gt;<i> 
</I>&gt;&gt;<i> and try to connect and then you can see what sourceip and destip 
</I>&gt;&gt;<i> are set and if a reply is coming back.
</I>&gt;<i> 
</I>&gt;<i> At the end of this, though, I can ping both the NAS on
</I>&gt;<i> 192.168.0.200 and other LAN connections.
</I>&gt;<i> 
</I>&gt;<i> Last question, then, is whether this is a permanent change?
</I>&gt;<i> 
</I>&gt;<i> Anne
</I>&gt;<i> 
</I>Clearly it isn't.  Dolphin froze and wouldn't restart,then I lost half
of my display, so I shut down and gave it 30mins. rest, to make sure
that nothing was cached.  On reboot, it was back to 169.254.100.1.

I can go through the steps again, but how can I make it permanent?

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+70eEACgkQj93fyh4cnBeVdQCfZm/++17BYInhLa/kUHUVMh3V
JbgAnjQoD+RvL5kEPuASvIt3WgEzPPHQ
=xcR3
-----END PGP SIGNATURE-----
</PRE>






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