72 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			72 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # This file describes the network interfaces available on your system
 | |
| # and how to activate them. For more information, see interfaces(5).
 | |
| 
 | |
| #-----------------------------
 | |
| # lo - loopback interface
 | |
| #-----------------------------
 | |
| auto lo
 | |
| iface lo inet loopback
 | |
| 
 | |
| 
 | |
| #-----------------------------
 | |
| # eth0 - WLAN
 | |
| #-----------------------------
 | |
| 
 | |
| auto eth0
 | |
| iface eth0 inet static
 | |
|    address 192.168.101.254
 | |
|    network 192.168.101.0
 | |
|    netmask 255.255.255.0
 | |
|    broadcast 192.168.101.255
 | |
| 
 | |
| 
 | |
| #-----------------------------
 | |
| # eth1 - LAN
 | |
| #-----------------------------
 | |
| 
 | |
| auto eth1 eth1:0
 | |
| iface eth1 inet static
 | |
|    address 192.168.100.254
 | |
|    network 192.168.100.0
 | |
|    netmask 255.255.255.0
 | |
|    broadcast 192.168.100.255
 | |
| iface eth1:0 inet static
 | |
|    address 192.168.100.1
 | |
|    network 192.168.100.1
 | |
|    netmask 255.255.255.255
 | |
|    broadcast 192.168.100.1
 | |
| 
 | |
| auto eth1:ap
 | |
| iface eth1:ap inet static
 | |
|    address 172.16.101.254
 | |
|    network 172.16.101.0
 | |
|    netmask 255.255.255.0
 | |
|    broadcast 172.16.101.255
 | |
|    # - Subnetworks accesspoints
 | |
|    # -
 | |
|    # - 172.16.101.1 - TP-Link WA801ND (Accesspoint)
 | |
|    # -
 | |
|    post-up /sbin/route add -net 172.16.102.0/24 gw 172.16.101.1
 | |
| 
 | |
| 
 | |
| 
 | |
| #-----------------------------
 | |
| # eth2 - WAN
 | |
| #-----------------------------
 | |
| 
 | |
| auto eth2
 | |
| iface eth2 inet static
 | |
|    address 172.16.100.1
 | |
|    network 172.16.100.0
 | |
|    netmask 255.255.255.0
 | |
|    broadcast 172.16.100.255
 | |
|    post-up vconfig add eth2 7
 | |
|    post-down vconfig rem eth2.7
 | |
| 
 | |
| auto dsl-ah
 | |
| iface dsl-ah inet ppp
 | |
|    pre-up /sbin/ifconfig eth2 up # line maintained by pppoeconf
 | |
|    pre-up /sbin/ifconfig eth2.7 up # line maintained by pppoeconf
 | |
|    provider dsl-ah
 | |
| 
 |