03.09.2019

Openwrt On X86 Pc

Openwrt

Why would I use a PC/Laptop as a router & why not a dedicated hardware router? Gunzip openwrt-15.05-x86-generic-combined-ext4.img.gz.

Posted by3 years ago
Archived

HI. I install openwrt 15.05 Chaos Calmer version x86 generic,

openwrt x86 has only one NIC and I wish to connect with other device switch that has vlans (openwrt 12.09 tplink) this because with only one NIC i would not be able to has a LAN and WANs port

so I read that I need to set a 802.1q TRUNK vlan that connect openwrt 15.05 x86 PC with switch openwrt 12.09 router

the switch router 'wr740n' has the following interfaces : eth0.1 which is vlan for LAN, eth1 wan eth0.3 that is a vlan for WAN3 and eth0.4 for WAN4.

the table is

vlan ID CPU PORT1 PORT2 PORT3 PORT4

Being

Openwrt X86 Vmware

this switch is set to NO DHCP so the openwrt x86 would do DHCP

so how I can edit /etc/config/network in x86 to make the unique NIC port TRUNK tagged all the vlans in the switch wr740 ? and therefore use both opewrt x86 and wr740 a globlal openwrt managed by x86 with more power and more Rom resources to install more complex packages ?

it supouse it have eth0 and eth1 but only in config but no physically in the default openwrt x86, plus at boot it also appear a dhcpv6 interface. config that is default in Chaos Calmer 15.05, what should add and what should I erase in the network config to allow x86 use the external vlans of the switch 'wr740' ? how Can I set the same trunk tagged in the 'x86' to interact with trunk tagged at 'wr740'

thanks so much for any help

inquba

below is the vlans in wr740

config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'

config interface 'lan'
option type 'bridge'
option proto 'static'
option netmask '255.255.255.0'
option _orig_ifname 'eth0 wlan0'
option _orig_bridge 'true'
option ifname 'eth0.1'
option ipaddr '192.168.10.2'

config interface 'wan'
option ifname 'eth1'
option proto 'dhcp'
option metric '10'

X86

Openwrt X86 64

config switch
option name 'eth0'
option reset '1'
option enable_vlan '1'

config switch_vlan
option device 'eth0'
option vlan '1'
option vid '1'
option ports '0t 1 4t'

config switch_vlan
option device 'eth0'
option vlan '2'
option vid '3'
option ports '0t 2 4t'

config switch_vlan
option device 'eth0'
option vlan '3'
option vid '4'
option ports '0t 3 4t'

2 comments