Skip to content

Commit 4e9c181

Browse files
committed
update documents
1 parent 80fa448 commit 4e9c181

File tree

2 files changed

+52
-37
lines changed

2 files changed

+52
-37
lines changed

docs/operation-guide.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ Sakura-DBCは、BGP経路のCommunity属性として表現することで、他
4141

4242
| 状態 | BGP Community |
4343
| --------- | ------------- |
44-
| fault | 65001:1 |
45-
| candidate | 65001:2 |
46-
| primary | 65001:3 |
47-
| replica | 65001:4 |
48-
| anchor | 65001:10 |
44+
| fault | 65000:1 |
45+
| candidate | 65000:2 |
46+
| primary | 65000:3 |
47+
| replica | 65000:4 |
48+
| anchor | 65000:10 |
4949

5050
## Sakura-DBCの起動
5151

@@ -140,7 +140,7 @@ Peers 2, using 1449 KiB of memory
140140
141141
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd PfxSnt Desc
142142
xx.xx.xx.xx 4 65001 228427 228427 0 0 0 01w0d22h 2 3 N/A
143-
xx.xx.xx.xx 4 65001 228427 228427 0 0 0 01w0d22h 2 3 N/A
143+
xx.xx.xx.xx 4 65002 228427 228427 0 0 0 01w0d22h 2 3 N/A
144144
145145
Total number of neighbors 2
146146
```
@@ -187,19 +187,19 @@ db-controllerがgobgpのgRPCポート(50051)を待ち受けており、そこか
187187
# gobgp neighbor
188188
Peer AS Up/Down State |#Received Accepted
189189
xx.xx.xx.xx 65001 00:30:02 Establ | 1 1
190-
xx.xx.xx.xx 65001 00:31:05 Establ | 3 2
190+
xx.xx.xx.xx 65002 00:31:05 Establ | 3 2
191191
```
192192

193193
BGP経路情報を確認するには、以下のようにgobgpコマンドを用います。
194194

195195
```
196196
# gobgp global rib
197197
Network Next Hop AS_PATH Age Attrs
198-
*> xx.xx.xx.xx/32 xx.xx.xx.xx 00:34:41 [{Origin: i} {Communities: 65001:3}]
199-
*> xx.xx.xx.xx/32 xx.xx.xx.xx 00:34:18 [{Origin: i} {LocalPref: 100} {Communities: 65001:4} {Originator: xx.xx.xx.xx} {ClusterList: [xx.xx.xx.xx]}]
200-
* xx.xx.xx.xx/32 xx.xx.xx.xx 00:34:35 [{Origin: i} {LocalPref: 100} {Communities: 65001:4} {Originator: xx.xx.xx.xx} {ClusterList: [xx.xx.xx.xx]}]
201-
*> xx.xx.xx.xx/32 xx.xx.xx.xx 00:00:00 [{Origin: i} {Med: 0} {LocalPref: 100} {Communities: 65001:10} {Originator: xx.xx.xx.xx} {ClusterList: [xx.xx.xx.xx]}]
202-
* xx.xx.xx.xx/32 xx.xx.xx.xx 00:35:20 [{Origin: i} {Med: 0} {LocalPref: 100} {Communities: 65001:10}]
198+
*> xx.xx.xx.xx/32 xx.xx.xx.xx 65003 00:00:42 [{Origin: i} {Med: 0} {Communities: 65000:10}]
199+
* xx.xx.xx.xx/32 xx.xx.xx.xx 65001 65003 00:00:38 [{Origin: i} {Communities: 65000:10}]
200+
*> xx.xx.xx.xx/32 xx.xx.xx.xx 00:00:35 [{Origin: i} {Communities: 65000:4}]
201+
*> xx.xx.xx.xx/32 xx.xx.xx.xx 65001 00:00:38 [{Origin: i} {Communities: 65000:3}]
202+
* xx.xx.xx.xx/32 xx.xx.xx.xx 65003 65001 00:00:39 [{Origin: i} {Communities: 65000:3}]
203203
```
204204

205205
## ログレベルの変更方法

docs/quick-start-guide.md

Lines changed: 40 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ Sakura-DBCは、以下のコンポーネントを利用します。
6868
```
6969
- /etc/frr/daemons ファイルを作成します
7070
```
71-
# vi /etc/frr/daemons
72-
----
7371
bgpd=yes
7472
vtysh_enable=yes
7573
zebra_options=" -A 127.0.0.1 -s 90000000"
@@ -78,35 +76,58 @@ Sakura-DBCは、以下のコンポーネントを利用します。
7876
```
7977
- /etc/frr/frr.conf ファイルを作成します
8078
```
81-
# vi /etc/frr/frr.conf
82-
----
8379
hostname test-server 【自身のホスト名を記入】
80+
log stdout
8481
log syslog informational
8582
no ip forwarding
8683
no ipv6 forwarding
87-
ip nht resolve-via-default
8884
bgp no-rib
8985
!
90-
router bgp 65001
86+
router bgp 65003
9187
bgp router-id xx.xx.xx.xx 【自身のIPアドレスを記入】
9288
bgp log-neighbor-changes
89+
no bgp ebgp-requires-policy
90+
bgp disable-ebgp-connected-route-check
9391
no bgp network import-check
9492
neighbor yy.yy.yy.yy remote-as 65001 【DBサーバ(1台目)のIPアドレスを記入】
9593
neighbor yy.yy.yy.yy timers 3 9
96-
neighbor yy.yy.yy.yy route-reflector-client
97-
neighbor zz.zz.zz.zz remote-as 65001 【DBサーバ(2台目)のIPアドレスを記入】
94+
neighbor zz.zz.zz.zz remote-as 65002 【DBサーバ(2台目)のIPアドレスを記入】
9895
neighbor zz.zz.zz.zz timers 3 9
99-
neighbor zz.zz.zz.zz route-reflector-client
100-
network xx.xx.xx.xx/32 route-map anchor 【自身のIPアドレスを記入】
96+
!
97+
address-family ipv4 unicast
98+
network xx.xx.xx.xx/32 route-map anchor 【自身のIPアドレスを記入】
99+
neighbor yy.yy.yy.yy soft-reconfiguration inbound 【DBサーバ(1台目)のIPアドレスを記入】
100+
neighbor zz.zz.zz.zz soft-reconfiguration inbound 【DBサーバ(2台目)のIPアドレスを記入】
101+
exit-address-family
102+
exit
103+
!
104+
bgp community-list standard anchor seq 5 permit 65000:10
105+
bgp community-list standard candidate seq 5 permit 65000:2
106+
bgp community-list standard fault seq 5 permit 65000:1
107+
bgp community-list standard primary seq 5 permit 65000:3
108+
bgp community-list standard replica seq 5 permit 65000:4
109+
!
110+
route-map fault permit 10
111+
set community 65000:1
112+
exit
113+
!
114+
route-map candidate permit 10
115+
set community 65000:2
116+
exit
101117
!
102-
bgp community-list standard fault seq 5 permit 65001:1
103-
bgp community-list standard candidate seq 5 permit 65001:2
104-
bgp community-list standard primary seq 5 permit 65001:3
105-
bgp community-list standard replica seq 5 permit 65001:4
106-
bgp community-list standard anchor seq 5 permit 65001:10
118+
route-map primary permit 10
119+
set community 65000:3
120+
exit
121+
!
122+
route-map replica permit 10
123+
set community 65000:4
124+
exit
107125
!
108126
route-map anchor permit 10
109-
set community 65001:10
127+
set community 65000:10
128+
exit
129+
!
130+
ip nht resolve-via-default
110131
```
111132
- FRRを起動します
112133
```
@@ -126,8 +147,6 @@ Sakura-DBCは、以下のコンポーネントを利用します。
126147

127148
- /etc/yum.repos.d/MariaDB.repo ファイルを作成します
128149
```
129-
# vi /etc/yum.repos.d/MariaDB.repo
130-
----
131150
[mariadb]
132151
name = MariaDB
133152
baseurl = https://rpm.mariadb.org/10.11/rhel/$releasever/$basearch
@@ -141,8 +160,6 @@ Sakura-DBCは、以下のコンポーネントを利用します。
141160
```
142161
- /etc/my.cnf ファイルを作成します
143162
```
144-
# vi /etc/my.cnf
145-
----
146163
[mariadb]
147164
148165
character_set_server = utf8mb4
@@ -234,15 +251,13 @@ Sakura-DBCは、以下のコンポーネントを利用します。
234251
注: コンパイルが成功すると、実行バイナリが `/root/distributed-mariadb-controller/bin/db-controller` に生成されます
235252
- /etc/systemd/system/db-controller.service ファイルを作成します
236253
```
237-
# vi /etc/systemd/system/db-controller.service
238-
----
239254
[Unit]
240255
Description=Database Controller
241256
After=network-online.target
242257
243258
[Service]
244259
Type=simple
245-
ExecStart=/root/distributed-mariadb-controller/bin/db-controller --log-level info --db-repilica-password-filepath /root/.db-replica-password --db-replica-source-port 13306 --bgp-peer-addresses=xx.xx.xx.xx,yy.yy.yy.yy 【アンカーともう一台のDBサーバのIPアドレスを記入
260+
ExecStart=/root/distributed-mariadb-controller/bin/db-controller --log-level info --db-repilica-password-filepath /root/.db-replica-password --db-replica-source-port 13306 --bgp-local-asn XXXX --bgp-peer1-addr xx.xx.xx.xx --bgp-peer1-asn XXXX --bgp-peer2-addr xx.xx.xx.xx --bgp-peer2-asn XXXX 【アンカーともう一台のDBサーバのIPアドレスとAS番号を記入
246261
WorkingDirectory = /root/distributed-mariadb-controller
247262
248263
[Install]
@@ -260,8 +275,8 @@ Sakura-DBCは、以下のコンポーネントを利用します。
260275
- gobgpをインストールします
261276
(db-controllerの動作上必要になるものではありませんが、CLIによりBGPの状態確認ができるためインストールを推奨します)
262277
```
263-
# wget https://github.com/osrg/gobgp/releases/download/v3.35.0/gobgp_3.35.0_linux_amd64.tar.gz
264-
# tar -C /usr/local/bin -xzf gobgp_3.35.0_linux_amd64.tar.gz
278+
# wget https://github.com/osrg/gobgp/releases/download/v3.35.0/gobgp_3.36.0_linux_amd64.tar.gz
279+
# tar -C /usr/local/bin -xzf gobgp_3.36.0_linux_amd64.tar.gz
265280
```
266281

267282
### 5. GSLBのセットアップ

0 commit comments

Comments
 (0)