Temat: Dwa adresy IP
Witam.
Nie mogę poradzić sobie z przypisaniem drugiego adresu IP do jednego z interface, moja bieżąca konfiguracja to:
config switch
option reset '1'
option enable_vlan '1'
option name 'switch0'
#Siec LAN 192.168.10.0/24
config switch_vlan
option vlan '1'
option ports '2 4 5t'
option device 'switch0'
#Siec WiFi 192.168.11.0/24
config switch_vlan
option vlan '2'
option ports '1 5t'
option device 'switch0'
#Sieci TV 192.168.12.0/24
config switch_vlan
option vlan '3'
option ports '3 5t'
option device 'switch0'
#0 WAN_OPT 2xx.xxx.xxx.xxx
config switch_vlan
option vlan '4'
option ports '0 5t'
option device 'switch0'
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 ifname 'eth0.1'
option type 'bridge'
option proto 'static'
option netmask '255.255.255.0'
option ipaddr '192.168.10.1'
config interface 'lan_ap'
option ifname 'eth0.2'
option proto 'static'
option netmask '255.255.255.0'
option ipaddr '192.168.11.1'
config interface 'lan_tv'
option ifname 'eth0.3'
option proto 'static'
option netmask '255.255.255.0'
option ipaddr '192.168.12.1'
config interface 'wan_opt'
option proto 'static'
option ifname 'eth0.4'
option netmask '255.255.255.252'
option ipaddr '2xx.xxx.xxx.xxx'
option gateway '2xx.xxx.xxx.xxx'
option dns '127.0.0.1'
config interface 'wan'
option proto 'dhcp'
option ifname 'eth1'
option defaultroute '0'
option enabled '0'I do interafce Eth0.3 / lan_tv chciałbym dorobić nowy adres IP próbuję poprzez dodanie:
config interface 'lan_new'
option device '@eth0.3'
option proto 'static'
option ipaddr '192.168.1.99'
option netmask '255.255.255.0'ale nie działa. Korzystam z tej poniższej pomocy, ale nie udaje mi się
https://openwrt.org/docs/guide-user/net … face_alias
Co robię nie tak?