LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   "ifconfig et0 del" doesn't work for me - why? (https://www.linuxquestions.org/questions/linux-networking-3/ifconfig-et0-del-doesnt-work-for-me-why-126562/)

mizuki26 12-17-2003 02:53 AM

"ifconfig et0 del" doesn't work for me - why?
 
hi,

i am trying to delete the binding of my eth0 interface to add a new ip for it.
what i am doin' is the following:

[root@black mischa]# ifconfig eth0 del 10.0.0.10
[root@black mischa]# ifconfig
eth0 Protokoll:Ethernet Hardware Adresse 00:30:1B:AF:46:03
inet Adresse:10.0.0.10 Bcast:192.168.0.255 Maske:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:23765 errors:0 dropped:0 overruns:0 frame:0
TX packets:23757 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:100
RX bytes:30653427 (29.2 Mb) TX bytes:2150338 (2.0 Mb)
Interrupt:11

the del command of ifconfig has no real effect. does anybody know why?

thanx,
mizuki

beyer42 12-17-2003 03:30 AM

rem is for removing an IPv6 address from the interface.
regular IP addressing that most of us use is IPv4 or just called IP

for more info on IPv6 see:
http://tldp.org/HOWTO/Linux+IPv6-HOWTO/x362.html

IPv6 is new IP addressing using 128 bits , instead of 32 bits.

to change the IP address it is bound to just type
ifconfig eth0 <new ip address>
or
ifconfig eth0 address <new ip address>

To remove the interface just type
ifconfig eth0 down

To bring the interface back
ifconfig eth0 up

The settings you make with ifconfig will not be saved if you reboot.


All times are GMT -5. The time now is 07:31 AM.