[solved] What does "0@eth1" "2:lan" "4:lan:1" "5:lan" "6@eth0" "1:wan" means?

	ucidef_set_interfaces_lan_wan "eth1.1" "eth0.2"
	ucidef_add_switch "switch0" \
		"0@eth1" "2:lan" "3:lan" "4:lan" "5:lan" "6@eth0" "1:wan"

		ucidef_set_interfaces_lan_wan "eth1.1" "eth0"
		ucidef_add_switch "switch0" \
			"0@eth1" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1"

what does "0@eth1" "2:lan" "3:lan" "4:lan" "5:lan" "6@eth0" "1:wan"
"0@eth1" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" means?
especially the usage of "@ and :"?
which number stands for vlan number which number stands for port number and what is the format?

  • 0@eth1 means that internal port 0 is internally wired to eth1 on the SoC
  • 2:lan .. 5:lan means that internal ports 2..5 are LAN ports, they'll get implicitly numbered form LAN1 to LAN4 in the UI. 2:lan 3:lan 4:lan 5:lan is short for 2:lan:1 3:lan:2 4:lan:3 5:lan:4
  • 1:lan:4 .. 4:lan:1 means that internal ports 1..4 are LAN ports but that externally on the case they're labelled differently. 1:lan:4 means internal port 1 is a LAN port and labelled LAN4 on the case. Essentially the ports are reordered when displayed in the GUI


This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.