add g18 conf

This commit is contained in:
Dict Xiong 2023-05-04 16:47:28 +08:00
parent 91133afcbd
commit c563a09aa1
12 changed files with 108 additions and 1 deletions

21
g18/rootfs/etc/hosts Normal file
View File

@ -0,0 +1,21 @@
192.168.16.201 sir1.ibd.ink
192.168.16.101 g1-nasp g1
192.168.16.102 g2-nasp g2
192.168.16.103 g3-nasp g3
192.168.16.104 g4-nasp g4
192.168.16.105 g5-nasp g5
192.168.16.106 g6-nasp g6
192.168.16.107 g7-nasp g7
192.168.16.108 g8-nasp g8
192.168.16.109 g9-nasp g9
192.168.16.110 g10-nasp g10
192.168.16.111 g11-nasp g11
192.168.16.112 g12-nasp g12
192.168.16.113 g13-nasp g13
192.168.16.114 g14-nasp g14
192.168.16.115 g15-nasp g15
192.168.16.116 g16-nasp g16
192.168.16.117 g17-nasp g17
192.168.16.118 g18-nasp g18 nasp.ob.ac.cn git.nasp.ob.ac.cn
192.168.16.119 g19-nasp g19
192.168.16.2 g20-nasp g20

View File

@ -0,0 +1,25 @@
network:
ethernets:
eno1:
dhcp4: true
dhcp6: false
accept-ra: false
eno2:
dhcp4: false
dhcp6: false
addresses: ["192.168.16.118/24", "192.168.16.3/24", "2001:da8:bf:300::1/64"]
eno4:
dhcp4: false
dhcp6: false
addresses: ["219.243.215.203/27", "2001:da8:bf::100/64"]
nameservers:
addresses: [114.114.114.114]
routes:
- to: default
via: "219.243.215.209"
metric: 10
- to: "::/0"
via: "2001:da8:bf::1"
metric: 10
on-link: true
version: 2

18
g18/rootfs/etc/radvd.conf Normal file
View File

@ -0,0 +1,18 @@
interface eth1 {
AdvSendAdvert on;
MinRtrAdvInterval 30;
MaxRtrAdvInterval 100;
AdvDefaultLifetime 1800;
# AdvDefaultPreference high;
# Disable Mobile IPv6 support
AdvHomeAgentFlag off;
AdvManagedFlag off;
prefix 2001:da8:bf:300::/64
{
AdvOnLink on;
AdvAutonomous on;
AdvRouterAddr off;
};
};

View File

@ -0,0 +1,2 @@
net.ipv4.ip_forward=1
net.ipv6.conf.all.forwarding=1

View File

@ -0,0 +1,7 @@
*nat
-A POSTROUTING -s 192.168.16.0/24 -o eno4 -j MASQUERADE
COMMIT
*filter
-A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
COMMIT

View File

@ -0,0 +1,2 @@
# g16 -- dictxiong
ac:1f:6b:a1:78:6c 192.168.16.255

View File

@ -0,0 +1,6 @@
# g1-g4
ac:1f:6b:21:d6:3c 192.168.16.255
ac:1f:6b:21:75:c8 192.168.16.255
ac:1f:6b:26:bd:0a 192.168.16.255
ac:1f:6b:24:1f:aa 192.168.16.255

View File

@ -0,0 +1,6 @@
# g5-g8
ac:1f:6b:24:3f:aa 192.168.16.255
ac:1f:6b:21:76:66 192.168.16.255
ac:1f:6b:21:76:48 192.168.16.255
ac:1f:6b:26:bc:c2 192.168.16.255

View File

@ -0,0 +1,6 @@
# g9-g12
ac:1f:6b:26:bd:1c 192.168.16.255
ac:1f:6b:fb:89:28 192.168.16.255
ac:1f:6b:fb:8b:c8 192.168.16.255
ac:1f:6b:a1:78:74 192.168.16.255

View File

@ -0,0 +1,6 @@
# g13-g16
ac:1f:6b:fb:8b:62 192.168.16.255
ac:1f:6b:fb:89:26 192.168.16.255
ac:1f:6b:fb:89:24 192.168.16.255
ac:1f:6b:a1:78:6c 192.168.16.255

View File

@ -0,0 +1,9 @@
2c:ea:7f:ec:47:44 166.111.130.255
2c:ea:7f:ec:48:a0 166.111.130.255
2c:ea:7f:ec:46:88 166.111.130.255
2c:ea:7f:ec:47:44 192.168.16.255
2c:ea:7f:ec:48:a0 192.168.16.255
2c:ea:7f:ec:46:88 192.168.16.255
# Cui's machine
2c:ea:7f:ed:1d:20 219.243.215.223

View File

@ -1,3 +1,2 @@
net.ipv4.ip_forward=1 net.ipv4.ip_forward=1
net.ipv6.conf.all.forwarding=1 net.ipv6.conf.all.forwarding=1