Log in

Bekijk de volledige versie : more Manually Assigned IP ???



Viper_Jaro
02-01-2005, 23:08
It is posible to get more Manually Assigned IP from asus WL 500g ?? I have readed about dnsmasq on ,
http://howto.linux-hardware-shop.de/dnsmasq.html#SRC-Konfigurationand , tryied to edit files in tmp/etc directory but nothing. Has somebody Idea how can i get more manualy assignet ip ??? pls Or is it hopeless ??

erik_bies
03-01-2005, 01:05
You mean you want to give your wl500g more than 1 IP?
You can do that by giving the ifconfig ethX:yourdesiredname IP address

e.g.


[admin@wifi root]$ ifconfig eth1:eth5 192.168.3.22
[admin@wifi root]$ ifconfig eth1:eth5
eth1:eth5 Link encap:Ethernet HWaddr 00:0E:A6:AA:AA:AA
inet addr:192.168.3.22 Bcast:192.168.3.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:4 Base address:0x8000

from the other box:
[admin@mygateway root]$ ping 192.168.3.22
PING 192.168.3.22 (192.168.3.22): 56 data bytes
64 bytes from 192.168.3.22: icmp_seq=0 ttl=64 time=26.4 ms
64 bytes from 192.168.3.22: icmp_seq=1 ttl=64 time=1.4 ms
64 bytes from 192.168.3.22: icmp_seq=2 ttl=64 time=1.4 ms

--- 192.168.3.22 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 1.4/9.7/26.4 ms

Viper_Jaro
03-01-2005, 01:12
No i meen in Ip config and DHCP setup is down a window where i can associate to specifed MAC specifed IP. And there i can only 8 ip. And my question is if is posible to specifi more that 8 IP. i have readed that should be . But i tryied and works not.

erik_bies
03-01-2005, 01:18
Aha,
Well, the assignements are AFAIK done from /etc/ethers
So you might want to add some in your post-boot script

for each additional entry a line like:
echo "00:E0:18:AA:AA:AA 192.168.3.10" >> /etc/ethers

or just replace the whole ethers file with one of your likes

Viper_Jaro
03-01-2005, 01:45
and the ethernets in tmp/etc or else ?

i tested that and mee has it not worked

Oleg
03-01-2005, 10:47
add the entries you need to the /usr/local/etc/ethers and save flashfs. When it boots it fills /etc/ethers as following - first it fills it with web stuff and lastly appends /usr/local/etc/ethers.