Portál AbcLinuxu, 10. května 2025 09:00
/etc/config/network
a /etc/config/wireless
? nebo ještě něco?
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config globals 'globals' option ula_prefix 'fd32:893b:92d8::/48' config interface 'lan' option ifname 'eth1' option force_link '1' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option ip6assign '60' option ipaddr '192.168.0.131' option broadcast '192.168.0.1' option dns '192.168.0.1' config interface 'wan' option ifname 'eth0' option proto 'dhcp' config interface 'wan6' option ifname '@wan' option proto 'dhcpv6' config switch option name 'switch0' option reset '1' option enable_vlan '1' config switch_vlan option device 'switch0' option vlan '1' option ports '0 1 2 3 4'/etc/config/wireless
config wifi-device 'radio0' option type 'mac80211' option channel '11' option hwmode '11g' option path 'platform/ar934x_wmac' option htmode 'HT20' option disabled '0' option txpower '30' option country 'CZ' config wifi-iface option ssid 'mojewifi' option encryption 'psk2' option device 'radio0' option mode 'sta' option bssid 'C8:3A:35:29:F6:F0' option key 'mojeheslonawifi' option network 'lan'
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config globals 'globals' option ula_prefix 'fd2a:4727:e103::/48' config interface 'lan' option ifname 'eth1' option force_link '1' option proto 'static' option netmask '255.255.255.0' option ip6assign '60' option ipaddr '192.168.2.1' config interface 'wan' option ifname 'eth0' option proto 'dhcp' config interface 'wan6' option ifname '@wan' option proto 'dhcpv6' config switch option name 'switch0' option reset '1' option enable_vlan '1' config switch_vlan option device 'switch0' option vlan '1' option ports '0 1 2 3 4' config interface 'wwan' option _orig_ifname 'wlan0' option _orig_bridge 'false' option proto 'static' option ipaddr '192.168.0.131' option netmask '255.255.255.0' option gateway '192.168.0.1' option dns '192.168.0.1' config interface 'stabridge' option proto 'relay' option ipaddr '127.0.0.1/8' list network 'lan' list network 'wwan'/etc/config/wireless
config wifi-device 'radio0' option type 'mac80211' option channel '11' option hwmode '11g' option path 'platform/ar934x_wmac' option htmode 'HT20' option disabled '0' option txpower '30' option country 'CZ' config wifi-iface option network 'wwan' option ssid 'mojewifi' option encryption 'psk2' option device 'radio0' option mode 'sta' option bssid 'C8:3A:35:29:F6:F0' option key 'mojeheslonawifi'
# disable bridge firewalling by default net.bridge.bridge-nf-call-arptables=0 net.bridge.bridge-nf-call-ip6tables=0 net.bridge.bridge-nf-call-iptables=0A když bude firewall vypnutý tak zda to neblokuje přenos paketů v bridge nevím jak je to provázané s firewallem nikdy jsem to nepotřeboval.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.