1.PPPoEの設定
eth0にPPPoEを追加します。user-id,passwordはそれぞれの環境に合わせてください。
interfaces {
ethernet eth0 {
description WAN(IPoE+DS-Lite+PPPoE)
:
pppoe 0 {
default-route auto
firewall {
in {
name PPPoE_IN
}
local {
name PPPoE_LOCAL
}
}
mtu 1454
name-server auto
password xxxx
user-id xxxx@xxxx
}
speed auto
}
:
}
次にstatic routeにPPPoEを追加します。
protocols {
static {
interface-route 0.0.0.0/0 {
next-hop-interface pppoe0 {
distance 200
}
next-hop-interface v6tun0 {
}
}
}
}
ですが、ここで192.168.10.0/24はPPPoEが利用し、192.168.1.0/24はDS-Lite側で利用したいので
FireWall modifyの設定で、特定のLANから来たパケットに対してmarkを入れたいと思います。
firewall {
all-ping enable
broadcast-ping disable
:
modify LAN_PBR {
rule 10 {
action modify
description "LAN to PPPoE"
destination {
address !192.168.0.0/16
}
modify {
table 1
}
source {
address 192.168.10.0/24
}
}
rule 20 {
action modify
description "LAN to DSLite"
destination {
address !192.168.0.0/16
}
modify {
table 2
}
source {
address 192.168.1.0/24
}
}
}
}
FireWallの設定ができましたのでstatic routeの設定に追加します。こんな感じになります。
protocols {
static {
interface-route 0.0.0.0/0 {
next-hop-interface pppoe0 {
distance 200
}
next-hop-interface v6tun0 {
}
}
table 1 {
interface-route 0.0.0.0/0 {
next-hop-interface pppoe0 {
}
}
}
table 2 {
interface-route 0.0.0.0/0 {
next-hop-interface v6tun0 {
}
}
}
}
}
あとは、natでmasqueradeを設定してもらえればと思います。
service {
:
nat {
rule 5010 {
description "masquerade for PPPoE"
outbound-interface pppoe0
type masquerade
}
}
}
私は、普段、GUIのConfig Treeで設定するか、直接、ルータにsshで入って、configureから設定する方が多いのですが、
最初にsetup wizardsでPPPoEの設定してから、そのあとに前回説明したDS-Liteの設定を追加した方が楽かなと思います。
また、今回の設定は、Edgerouter Lite-3でDS-Liteが大変参考になりました。感謝です。次回は、今までに、説明しなかった部分を補足しながら、私が今回設定した全体の設定を記載しようと思います。

0 件のコメント:
コメントを投稿