Page 1 of 1

Why (no such command or directory( address)

Posted: Wed May 28, 2008 6:00 pm
by aRTx
[admin@MikroTik] > /interface ethernet print
[admin@MikroTik] > /interface ethernet set 0 name lan
[admin@MikroTik] > /interface ethernet set 0 name lan
[admin@MikroTik] > /ip address add address=192.168.1.1/24 interface=lan
[admin@MikroTik] > /ip dhcp-client add interface=wan use-peer-dns=yes disabled=no add-default-route=yes
[admin@MikroTik] > /ping 80.80.174.131
80.80.174.131 64 byte ping: ttl=47 time=192 ms
80.80.174.131 64 byte ping: ttl=47 time=183 ms
80.80.174.131 64 byte ping: ttl=47 time=188 ms
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 183/187.6/192 ms


[admin@MikroTik] > /ip dhcp-server network address=192.168.1.0/24 \ dns-server=192.168.1.1 gateway=192.168.1.1 disabled=no

But the last command display this message:
no such command or directory (address)
Why?

I just want to share internet without restrictions...

Re: Why (no such command or directory( address)

Posted: Wed May 28, 2008 6:05 pm
by hilton
Type this;

/ip dhcp-server network add address=192.168.1.0/24 dns-server=192.168.1.1 gateway=192.168.1.1

Re: Why (no such command or directory( address)

Posted: Wed May 28, 2008 6:39 pm
by aRTx
The router accept your command but until now I don't have internet connectin from PC client.

in pc client I have write this IP:

192.168.1.22 (IP)
255.255.255.0 (SM)
1921168.1.1 (GW)

192.168.1.1 (dns)

please tell me wha to do...

Re: Why (no such command or directory( address)

Posted: Wed May 28, 2008 6:52 pm
by hilton
You may need a masquerade rule if you only have a single IP address from your ISP.

chain=srcnat action=masquerade src-address=192.168.1.0/24 out-interface=your_pppoe