Community discussions

MikroTik App
 
aRTx
just joined
Topic Author
Posts: 16
Joined: Wed May 28, 2008 11:30 am

Why (no such command or directory( address)

Wed May 28, 2008 6:00 pm

[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...
 
User avatar
hilton
Long time Member
Long time Member
Posts: 634
Joined: Thu Sep 07, 2006 5:12 pm
Location: Jozi (aka Johannesburg), South Africa

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

Wed May 28, 2008 6:05 pm

Type this;

/ip dhcp-server network add address=192.168.1.0/24 dns-server=192.168.1.1 gateway=192.168.1.1
 
aRTx
just joined
Topic Author
Posts: 16
Joined: Wed May 28, 2008 11:30 am

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

Wed May 28, 2008 6:39 pm

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...
 
User avatar
hilton
Long time Member
Long time Member
Posts: 634
Joined: Thu Sep 07, 2006 5:12 pm
Location: Jozi (aka Johannesburg), South Africa

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

Wed May 28, 2008 6:52 pm

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