ifconfig with 2 addresses on opensuse jeOS

Hello,

I have created my own distribution with susestudio.com , based on jeOS template and it works well :slight_smile:

But I have some problems with network configuration. I make a default configuration with susestudio ( configuration -> General -> network ) and I put for example 172.16.0.185 address.

I also put a script which configures IP address with different informations coming from for example a serial port to make my own IP address. This script make the new address and call the ifconfig system program. For example, the script calls “ifconfig eth0 172.16.0.182”.

And now, I can ping the two addresses, 172.16.0.185 and 172.16.0.182. Is this normal ?

I thought the new command “ifconfig eth0 172.16.0.182” would overwrite the old value ( 172.16.0.185 ). It works as this on other distribs ( like ubuntu ) but not on opensuse.

I know that I can have 2 addresses but using the following syntax : “ifconfig eth0:1 A.B.C.D” (if kernel supports aliases ) , and I don’t know if it is normally possible to have 2 address from the same subnet.

How can I overwrite the default config , and not to have the first address available ?

Thanks :slight_smile:

F. MAZUR.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This is normal. Having multiple IPs on a given device isn’t all that
rare, except perhaps with home users. You can use the ifconfig (or,
better yet, ‘ip’) command to remove IP addresses as well. ifconfig is
old and outdated; use ip for eeverything instead of ifconfig/route.

Good luck.


Want to yell at me in person?
Come to BrainShare 2011 in October: http://tinyurl.com/brainshare2011
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJOb28/AAoJEF+XTK08PnB5wXwQAIWxG9t5K4O8CgipFRr4VqqI
5WgqMEL3k8gumNqex5z7YFRhSJMH3uBIFxBsnARQ/CESQodza1qflwNzcr8xrvzm
BbJHOaVZ/x9Jl6CFr/CRUe7ZyYG0HD1G6BzJGorysYGamsEusHKPdt8orLJLgFl2
2DuonLMyDFXKgcfhR+G26Xqf0/rH7ZToJZV9B531ejjfLyRSCnygABGkqYrtHIfw
azc222C+uMyMdEb1SrVcygsMjje1iN8lG6Z3EoGvArN8JXuij4aDpFZtDOQxoPZS
rXENrv1Onnwj+lugUX8L70YMT1VnfUlYXxsnureP5txn/5xivLGPRZO+0Lk3jkcr
A6sgb0Mlxs+jPyXsgmsfbTzowLMIrLAoXSfe4wTS+gU8RBWbzvD+vr2BOlBCHFFK
XPzq+rsRIiyCwRMjD49Ij7gh9OptqoLxJLo9vnjiFiFNLhRoZEscp2O7bR21pF8O
N8ANBVC+du2Zeo0tfroXQGGGncXt9rqPRU3ftZ6TURlEFpZ8/18gCyKB5ch5iF8W
LdHb7MFwouUwivOCWOtQZ4vrVsk2T2WURozXLpn0E5K85Tq+0hnJGjVDBDzQrGYu
OOuZAWr1KZOjpgC+wnHlxqBmu3DxE/ERaBZ42Kv8zRtR+bmw8LPUAck++A7XG1W3
chI1fNODQFbUjr/TotZl
=0HYS
-----END PGP SIGNATURE-----