"EdgeRouter X SFP" 修訂間的差異

出自 CH 維基百科
前往: 導覽搜尋
行 34: 行 34:
  
 
  '''PPPOE Relay'''
 
  '''PPPOE Relay'''
   #sudo pppoe-relay -S eth0 -C Switch0
+
   #sudo pppoe-relay -S eth0 -C switch0
  
 
  '''UPnP'''
 
  '''UPnP'''

於 2020年8月11日 (二) 09:10 的修訂

註:前方有$#為CLI指令

IPv6 of Hinet pppoe
P.S. eth0為WAN
$sudo su
#configure
#set interfaces ethernet eth0 pppoe 0 ipv6 enable
#set interfaces ethernet eth0 pppoe 0 ipv6 address autoconf
#set interfaces ethernet eth0 pppoe 0 dhcpv6-pd pd 0
#set interfaces ethernet eth0 pppoe 0 dhcpv6-pd pd 0 prefix-length 64
#set interfaces ethernet eth0 pppoe 0 dhcpv6-pd pd 0 interface switch0
#set interfaces ethernet eth0 pppoe 0 dhcpv6-pd pd 0 interface switch0 service slaac
#set interfaces switch switch0 ipv6 router-advert prefix ::/64
#commit
#save
#exit
#reboot
#y
硬體加速
 #configure
 #set system offload hwnat enable
 #commit
 #save 
 P.S.建議重啟
Port Forwarding
 WAN interface pppoe0
 Auto firewall no Enable
 LAN interface swtch0
Firewall Policies 
 WAN_IN
 新增規則:Basic頁面->Action->Accept   Destination頁面->輸入port
PPPOE Relay
 #sudo pppoe-relay -S eth0 -C switch0
UPnP
 Wizards -> UPnP
 Internal interface:switch0  External interface:pppoe0
UPnP2
 $sudo su
 #configure
 #set service upnp2 wan pppoe0
 #set service upnp2 listen-on switch0
 #set service upnp2 listen-on eth1
 #set service upnp2 nat-pmp enable
 #set service upnp2 secure-mode enable
 #commit
 #save
 #exit