Sie sind auf Seite 1von 2

u: administrator

p: !M1PhoIAD2

i ukucavate redom jednu po jednu naredbu (kaem jednu po jednu da se ne bi dogodila neka
greka pa dobijete glupost)

:ppp relay flush
:ppp flush
:eth flush
:atm flush
:atm phonebook flush
:eth bridge ifdelete intf=ethport3
:eth ifadd intf=eth_wan
:eth ifconfig intf=eth_wan dest=ethif3
:eth ifattach intf=eth_wan
:ip ifadd intf=ip_wan_eth dest=eth_wan
:ip ifconfig intf=ip_wan_eth status=up
:ip ifattach intf=ip_wan_eth
:nat ifconfig intf=ip_wan_eth translation=enabled
:dhcp client ifadd intf=ip_wan_eth
:dhcp client ifconfig intf=ip_wan_eth metric=5 dnsmetric=5
:dhcp client rqoptions add intf=ip_wan_eth option=dhcp-lease-time
:dhcp client rqoptions add intf=ip_wan_eth option=dhcp-renewal-time
:dhcp client rqoptions add intf=ip_wan_eth option=dhcp-rebinding-time
:dhcp client rqoptions add intf=ip_wan_eth option=subnet-mask
:dhcp client rqoptions add intf=ip_wan_eth option=classless-static-routes
:dhcp client rqoptions add intf=ip_wan_eth option=default-routers
:dhcp client rqoptions add intf=ip_wan_eth option=classfull-static-routes
:dhcp client rqoptions add intf=ip_wan_eth option=domain-name-servers
:dhcp client ifattach intf=ip_wan_eth
:saveall


For firmware 6.1 and up.
First, to start CLI, you need telnet. Depending on your OS, this can be different, but basically start
your favorite terminal (Konsole, cmd.exe, etc) and type:
telnet 192.168.1.254
Then paste the following to clean up all interfaces:
:ppp relay flush
:ppp flush
:eth flush
:atm flush
:atm phonebook flush
Now we delete current configuration for port 4:
:eth bridge ifdelete intf=ethport4
And then create a WAN ethernet interface:
:eth ifadd intf=eth_wan
:eth ifconfig intf=eth_wan dest=ethif4
:eth ifattach intf=eth_wan
Follow this up with IP interface:
:ip ifadd intf=ip_wan_eth dest=eth_wan
If you need MAC cloning (e.g your cable modem is locked to your computers MAC), enter this line too
(of course, change it to your computers MAC address):
:ip ifconfig intf=ip_wan_eth hwaddr=00:11:42:0c:65:1d
And bring up the interface:
:ip ifconfig intf=ip_wan_eth status=up
:ip ifattach intf=ip_wan_eth
We also enable NAT on that interface:
:nat ifconfig intf=ip_wan_eth translation=enabled
Next we configure DCHP client on that port:
:dhcp client ifadd intf=ip_wan_eth
:dhcp client ifconfig intf=ip_wan_eth metric=5 dnsmetric=5
:dhcp client rqoptions add intf=ip_wan_eth option=dhcp-lease-time
:dhcp client rqoptions add intf=ip_wan_eth option=dhcp-renewal-time
:dhcp client rqoptions add intf=ip_wan_eth option=dhcp-rebinding-time
:dhcp client rqoptions add intf=ip_wan_eth option=subnet-mask
:dhcp client rqoptions add intf=ip_wan_eth option=classless-static-routes
:dhcp client rqoptions add intf=ip_wan_eth option=default-routers
:dhcp client rqoptions add intf=ip_wan_eth option=classfull-static-routes
:dhcp client rqoptions add intf=ip_wan_eth option=domain-name-servers
:dhcp client ifattach intf=ip_wan_eth

Das könnte Ihnen auch gefallen