Selaa lähdekoodia

add repeater cfg

orbitzs 4 vuotta sitten
vanhempi
commit
0dabff43c2
4 muutettua tiedostoa jossa 25 lisäystä ja 8 poistoa
  1. 2 2
      docker/dnet.sh
  2. 17 0
      interfaces
  3. BIN
      netgear-ex7000/NETGEAR_EX7000.cfg
  4. 6 6
      vlan-6-1.sh

+ 2 - 2
docker/dnet.sh

@@ -3,9 +3,9 @@
 docker network create -d ipvlan \
   --subnet=192.168.6.0/24 \
   --gateway=192.168.6.1 \
-  -o parent=enp0s25.6 ipvlan6
+  -o parent=enp6s0.6 ipvlan6
 
 docker network create -d ipvlan \
   --subnet=192.168.1.0/24 \
   --gateway=192.168.1.1 \
-  -o parent=enp0s25.1 ipvlan1
+  -o parent=enp6s0.1 ipvlan1

+ 17 - 0
interfaces

@@ -0,0 +1,17 @@
+# create this file at /etc/network and name it interfaces
+
+source-directory /etc/network/interfaces.d
+
+auto lo
+iface lo inet loopback
+
+allow-hotplug enp6s0
+iface enp6s0 inet manual
+
+allow-hotplug enp6s0.1
+iface enp6s0.1 inet dhcp 
+	vlan-raw-device enp6s0
+
+allow-hotplug enp6s0.6
+iface enp6s0.6 inet dhcp 
+	vlan-raw-device enp6s0

BIN
netgear-ex7000/NETGEAR_EX7000.cfg


+ 6 - 6
vlan-6-1.sh

@@ -1,11 +1,11 @@
 #!/bin/sh
 
-#sudo vconfig add enp0s25 1
-#sudo vconfig add enp0s25 6 
+#sudo vconfig add enp6s0 1
+#sudo vconfig add enp6s0 6 
 echo "define vlan interfaces..."
-sudo ip link add link enp0s25 name enp0s25.1 type vlan id 1
-sudo ip link add link enp0s25 name enp0s25.6 type vlan id 6
+sudo ip link add link enp6s0 name enp6s0.1 type vlan id 1
+sudo ip link add link enp6s0 name enp6s0.6 type vlan id 6
 echo "enable interfaces..."
-sudo ip link set enp0s25.1 up
-sudo ip link set enp0s25.6 up
+sudo ip link set enp6s0.1 up
+sudo ip link set enp6s0.6 up