LINKSYS wrt54gl: Porovnání verzí
Řádek 1: | Řádek 1: | ||
− | + | '''Po prvnim prihlaseni (telnetem) je treba si ined zmenit heslo (passwd), rebootnout AP a prihlasit se pres ssh (telnet se pak automaticky zablokuje).''' | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | ---- | ||
+ | * Predelani linksyse na router co ma 5 sitovych ethernet karet (wifi zustava jedno) | ||
+ | **Nastaveni 5ti sitovek na jednotlive porty switche (vcetne WAN) | ||
+ | <bash> | ||
nvram set vlan0_ports="1 5*" | nvram set vlan0_ports="1 5*" | ||
nvram set vlan0_hwname="et0" | nvram set vlan0_hwname="et0" | ||
Řádek 35: | Řádek 17: | ||
nvram commit | nvram commit | ||
reboot | reboot | ||
+ | #Nastaveni portu 1 pro vlan0 je vyzadovano pro budouci mozny upgrade firmware. | ||
+ | #Upgrade fw nejde kdyz neni port 1 ve vlan0. | ||
+ | </bash> | ||
+ | |||
+ | Pak bude toto rozdeleni | ||
+ | vlan0-> port3 | ||
+ | vlan1-> wanport(internet) | ||
+ | vlan2-> port2 | ||
+ | vlan3-> port1 | ||
+ | vlan4-> port4 | ||
+ | |||
+ | **Aktivace zbyvajicich vlanu (defaultni jsou aktivni jen vlan0 a 1) je nutno provadet uz skriptem po kazdem bootu: | ||
+ | |||
+ | <bash> | ||
+ | vconfig add eth0 2 #Pridat vlan2 k eth0 | ||
+ | vconfig add eth0 3 #Pridat vlan3 k eth0 | ||
+ | vconfig add eth0 4 #Pridat vlan4 k eth0 | ||
+ | |||
+ | ifconfig vlan2 hw ether XX:XX:XX:XX:XX:02 #Nastavit mac adresu pro vlan2 | ||
+ | ifconfig vlan3 hw ether XX:XX:XX:XX:XX:03 #Nastavit mac adresu pro vlan3 | ||
+ | ifconfig vlan4 hw ether XX:XX:XX:XX:XX:04 #Nastavit mac adresu pro vlan4 | ||
+ | |||
+ | ifconfig vlan0 xx.xx.xx.xx netmask xx.xx.xx.xx broadcast xx.xx.xx.xx up #Nastavit IP adresu pro vlan0 | ||
+ | ifconfig vlan1 xx.xx.xx.xx netmask xx.xx.xx.xx broadcast xx.xx.xx.xx up #Nastavit IP adresu pro vlan1 | ||
+ | ifconfig vlan2 xx.xx.xx.xx netmask xx.xx.xx.xx broadcast xx.xx.xx.xx up #Nastavit IP adresu pro vlan2 | ||
+ | ifconfig vlan3 xx.xx.xx.xx netmask xx.xx.xx.xx broadcast xx.xx.xx.xx up #Nastavit IP adresu pro vlan3 | ||
+ | ifconfig vlan4 xx.xx.xx.xx netmask xx.xx.xx.xx broadcast xx.xx.xx.xx up #Nastavit IP adresu pro vlan4 | ||
+ | </bash> | ||
+ | |||
+ | * Nastaveni FD / HD / 10 / 100 pro jednotlive porty | ||
+ | **Pro nastavovani jednotlivych vystupu, je treba nainstalovat balik robocfg | ||
+ | **ipkg update | ||
+ | **nasledovne na www kliknout na install u prislusneho baliku | ||
+ | <bash> | ||
+ | robocfg show #Zobrazit aktualni konfiguraci vsech portu | ||
+ | robocfg port X media <auto|10HD|10FD|100HD|100FD> #Nastaveni modu portu | ||
+ | robocfg port X mdi-x <auto|on|off> #Nastaveni Auto-Cross | ||
+ | </bash> | ||
+ | |||
+ | *Drobne stripky z testovani HWAP Linksys: | ||
− | + | BusyBox v1.00 (2005.11.23-21:46+0000) Built-in shell (ash) | |
− | + | Enter 'help' for a list of built-in commands. | |
− | + | _______ ________ __ | |
− | + | | |.-----.-----.-----.| | | |.----.| |_ | |
− | + | | - || _ | -__| || | | || _|| _| | |
− | + | |_______|| __|_____|__|__||________||__| |____| | |
+ | |__| W I R E L E S S F R E E D O M | ||
+ | WHITE RUSSIAN (RC4) ------------------------------- | ||
+ | * 2 oz Vodka Mix the Vodka and Kahlua together | ||
+ | * 1 oz Kahlua over ice, then float the cream or | ||
+ | * 1/2oz cream milk on the top. | ||
+ | --------------------------------------------------- | ||
+ | root@OpenWrt:~# | ||
− | + | root@OpenWrt:~# df | |
+ | Filesystem 1k-blocks Used Available Use% Mounted on | ||
+ | /dev/root 3264 1884 1380 58% / | ||
+ | none 7188 12 7176 0% /tmp | ||
− | + | root@OpenWrt:/etc/quagga# free | |
− | + | total used free shared buffers | |
− | + | Mem: 14376 9136 5240 0 0 | |
+ | Swap: 0 0 0 | ||
+ | Total: 14376 9136 5240 |
Verze z 20. 1. 2006, 21:25
Po prvnim prihlaseni (telnetem) je treba si ined zmenit heslo (passwd), rebootnout AP a prihlasit se pres ssh (telnet se pak automaticky zablokuje).
- Predelani linksyse na router co ma 5 sitovych ethernet karet (wifi zustava jedno)
- Nastaveni 5ti sitovek na jednotlive porty switche (vcetne WAN)
<bash> nvram set vlan0_ports="1 5*" nvram set vlan0_hwname="et0" nvram set vlan1_ports="4 5*" nvram set vlan1_hwname="et0" nvram set vlan2_ports="2 5*" nvram set vlan2_hwname="et0" nvram set vlan3_ports="3 5*" nvram set vlan3_hwname="et0" nvram set vlan4_ports="0 5*" nvram set vlan4_hwname="et0" nvram commit reboot
- Nastaveni portu 1 pro vlan0 je vyzadovano pro budouci mozny upgrade firmware.
- Upgrade fw nejde kdyz neni port 1 ve vlan0.
</bash>
Pak bude toto rozdeleni vlan0-> port3 vlan1-> wanport(internet) vlan2-> port2 vlan3-> port1 vlan4-> port4
- Aktivace zbyvajicich vlanu (defaultni jsou aktivni jen vlan0 a 1) je nutno provadet uz skriptem po kazdem bootu:
<bash> vconfig add eth0 2 #Pridat vlan2 k eth0 vconfig add eth0 3 #Pridat vlan3 k eth0 vconfig add eth0 4 #Pridat vlan4 k eth0
ifconfig vlan2 hw ether XX:XX:XX:XX:XX:02 #Nastavit mac adresu pro vlan2 ifconfig vlan3 hw ether XX:XX:XX:XX:XX:03 #Nastavit mac adresu pro vlan3 ifconfig vlan4 hw ether XX:XX:XX:XX:XX:04 #Nastavit mac adresu pro vlan4
ifconfig vlan0 xx.xx.xx.xx netmask xx.xx.xx.xx broadcast xx.xx.xx.xx up #Nastavit IP adresu pro vlan0 ifconfig vlan1 xx.xx.xx.xx netmask xx.xx.xx.xx broadcast xx.xx.xx.xx up #Nastavit IP adresu pro vlan1 ifconfig vlan2 xx.xx.xx.xx netmask xx.xx.xx.xx broadcast xx.xx.xx.xx up #Nastavit IP adresu pro vlan2 ifconfig vlan3 xx.xx.xx.xx netmask xx.xx.xx.xx broadcast xx.xx.xx.xx up #Nastavit IP adresu pro vlan3 ifconfig vlan4 xx.xx.xx.xx netmask xx.xx.xx.xx broadcast xx.xx.xx.xx up #Nastavit IP adresu pro vlan4 </bash>
- Nastaveni FD / HD / 10 / 100 pro jednotlive porty
- Pro nastavovani jednotlivych vystupu, je treba nainstalovat balik robocfg
- ipkg update
- nasledovne na www kliknout na install u prislusneho baliku
<bash> robocfg show #Zobrazit aktualni konfiguraci vsech portu robocfg port X media <auto|10HD|10FD|100HD|100FD> #Nastaveni modu portu robocfg port X mdi-x <auto|on|off> #Nastaveni Auto-Cross </bash>
- Drobne stripky z testovani HWAP Linksys:
BusyBox v1.00 (2005.11.23-21:46+0000) Built-in shell (ash) Enter 'help' for a list of built-in commands. _______ ________ __ | |.-----.-----.-----.| | | |.----.| |_ | - || _ | -__| || | | || _|| _| |_______|| __|_____|__|__||________||__| |____| |__| W I R E L E S S F R E E D O M WHITE RUSSIAN (RC4) ------------------------------- * 2 oz Vodka Mix the Vodka and Kahlua together * 1 oz Kahlua over ice, then float the cream or * 1/2oz cream milk on the top. --------------------------------------------------- root@OpenWrt:~#
root@OpenWrt:~# df Filesystem 1k-blocks Used Available Use% Mounted on /dev/root 3264 1884 1380 58% / none 7188 12 7176 0% /tmp
root@OpenWrt:/etc/quagga# free total used free shared buffers Mem: 14376 9136 5240 0 0 Swap: 0 0 0 Total: 14376 9136 5240