5
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

VyOSでIIJmioにDS-Lite接続(ひかり電話契約なし)

Last updated at Posted at 2015-04-29

初投稿です。

VyOSでIIJmioからDS-Liteで接続したくて契約してみました。

環境

  • VyOS 1.1.5
  • 富士通 PRIMERGY MX130 S2(Intel NIC1枚追加)
  • NTT東日本フレッツ光 ギガファミリースマートタイプ(ひかり電話契約なし)
  • eth0(オンボード)はONUのUNI引っこ抜いて直結
  • eth1はL2SWに接続されています

参考

http://misc.mat2uken.net/blog/2014/12/19/using_dslite_with_iijmio.html
http://www.mfeed.ad.jp/transix/ds-lite/contents/iij_seil.html

コンフィグ

関係ありそうな部分のみ

config
interfaces {
    bridge br0 {
        address dhcpv6
        address 192.168.0.254/24
        aging 300
        dhcpv6-options {
            parameters-only
        }
        hello-time 2
        ipv6 {
            address {
                autoconf
            }
            disable-forwarding
            dup-addr-detect-transmits 1
        }
        max-age 20
        priority 0
        stp false
    }
    ethernet eth0 {
        bridge-group {
            bridge br0
        }
        duplex auto
        hw-id xx:xx:xx:xx:xx:xx
        mtu 1500
        smp_affinity auto
        speed auto
    }
    ethernet eth1 {
        bridge-group {
            bridge br0
        }
        duplex auto
        hw-id yy:yy:yy:yy:yy:yy
        mtu 1500
        smp_affinity auto
        speed auto
    }
    loopback lo {
    }
    tunnel tun0 {
        encapsulation ipip6
        local-ip hoge
        mtu 1500
        multicast disable
        remote-ip 2404:8e00::feed:100
    }
}
protocols {
    static {
        interface-route 0.0.0.0/0 {
            next-hop-interface tun0 {
            }
        }
    }
}
service {
    dhcp-server {
        disabled false
        shared-network-name ONIGIRI {
            authoritative disable
            subnet 192.168.0.0/24 {
                default-router 192.168.0.254
                dns-server 8.8.8.8
                lease 86400
                start 192.168.0.11 {
                    stop 192.168.0.50
                }
            }
        }
    }
    dns {
        forwarding {
            cache-size 0
            listen-on eth1
        }
    }
    ssh {
        listen-address 192.168.0.254
        port 22
    }
}
5
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?