[问答] iptables设定问题请益

楼主: alvine   2019-05-07 17:42:38
我有两个interface如下:
bridge0 Link encap:Ethernet HWaddr 94:91:7F:55:76:1D
inet addr:100.74.55.169 Bcast:100.74.55.175 Mask:255.255.255.240
inet6 addr: fe80::9691:7fff:fe55:761d/64 Scope:Link
UP BROADCAST RUNNING PROMISC ALLMULTI MULTICAST MTU:1500 Metric:1
RX packets:2257 errors:0 dropped:0 overruns:0 frame:0
TX packets:2225 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2536619 (2.4 MiB) TX bytes:2685068 (2.5 MiB)
eth0 Link encap:Ethernet HWaddr 94:91:7F:55:76:1D
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::9691:7fff:fe55:761d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2289 errors:0 dropped:0 overruns:0 frame:0
TX packets:2205 errors:0 dropped:0 overruns:0 carrier:1
collisions:0 txqueuelen:1000
RX bytes:2570729 (2.4 MiB) TX bytes:2699632 (2.5 MiB)
Interrupt:44
而这两个接口又是桥接起来的, eth0->bridge0->internet
bridge name bridge id STP enabled interfaces
bridge0 8000.94917f55761d no eth0
请问,该如何设定让一设备,例如拿到ip为100.74.55.170的装置可以读取到
login web(位址为192.168.1.1)?
作者: fonzae (fonzae)   2019-05-07 19:15:00
身为bridge0不设定secondary ip吗?
楼主: alvine   2019-05-07 19:32:00
请问是用ip alias的方式将192.168.1.1设定给bridge0吗?
作者: fonzae (fonzae)   2019-05-08 22:05:00
这个应该是Linux接口吧,我习惯是进config底下更改

Links booklink

Contact Us: admin [ a t ] ucptt.com