You are not logged in.
Pages: 1
It seems that it takes two times to set an IP address with a specific netmask using ifconfig (this works the first time in Ubuntu/RedHat).
First attempt sets an IP with an invalid mask (the "Cannot assign requested address" does not always show).
Second attempt gets the mask right:
root@pazuzu /home/daf666 # ifconfig eth1 10.0.0.1/24
SIOCSIFNETMASK: Cannot assign requested address
root@pazuzu /home/daf666 # ifconfig eth1
eth1 Link encap:Ethernet HWaddr 00:22:15:15:0A:A4
inet addr:10.0.0.1 Bcast:10.255.255.255 Mask:255.0.0.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:17
root@pazuzu /home/daf666 # ifconfig eth1 10.0.0.1/24
root@pazuzu /home/daf666 # ifconfig eth1
eth1 Link encap:Ethernet HWaddr 00:22:15:15:0A:A4
inet addr:10.0.0.1 Bcast:10.0.0.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:17
This is obviously a bug.. the question is where?
Offline
I'm not sure using a CIDR mask is actually supported is it? I always do my netmasks as, well, a netmask:
ifconfig eth0 192.168.50.1 netmask 255.255.255.0
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
Pages: 1