da sie ja mam cos takiego w pliku net.conf :
Cytuj:
#Static IP example
eth1="eth1 192.168.2.1 netmask 255.255.255.0 broadcast 192.168.2.255 up"
eth11="eth1:1 10.10.0.1 netmask 255.255.255.0 broadcast 10.10.0.255 up"
eth2="eth2 95.X.X.X netmask 255.255.255.252 broadcast 95.X.X.X up"
#eth0="dhcp"
INTERFACES=(eth1 eth11 eth2)
Cytuj:
]# ifconfig
eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 metric 1
inet 192.168.2.1 netmask 255.255.255.0 broadcast 192.168.2.255
inet6 fe80::202:a5ff:fe5c:703b prefixlen 64 scopeid 0x20<link>
ether 00:02:a5:5c:70:3b txqueuelen 1000 (Ethernet)
RX packets 56542973 bytes 2489433784 (2.3 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 84296019 bytes 3658367633 (3.4 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth1:1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 metric 1
inet 10.10.0.1 netmask 255.255.255.0 broadcast 10.10.0.255
ether 00:02:a5:5c:70:3b txqueuelen 1000 (Ethernet)
eth2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1492 metric 1
inet 95.x.x.x netmask 255.255.255.252 broadcast 95.x.x.x
inet6 fe80::224:1dff:fea7:2cb9 prefixlen 64 scopeid 0x20<link>
ether 00:24:1d:a7:2c:b9 txqueuelen 1000 (Ethernet)
RX packets 84181087 bytes 3648977734 (3.3 GiB)
RX errors 84 dropped 0 overruns 0 frame 25
TX packets 54824495 bytes 2480453761 (2.3 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 40
w moim przypadku siec 10.10.0.0/24 jest bez dostępu do neta, a co do niceshapera to standardowo masz w configu :
Cytuj:
<download>
# Section filter(s) for controlled subnet(s)
match dstip 192.168.0.0/24.
match dstip 192.168.1.0/24.
i to samo masz w upload, czyli powinno działać ale ja tego nie testowałem, wiec nie wiem jak z wydajnoscia.