E' da pochissimo che ho installato sul mio server Ubuntu 6.06 e finora sono riuscita ad andare avanti solo grazie ad infinite letture sul wiki e forum.. ma adesso mi sono bloccata! >:(
Vorrei configurare il mio server come gatway di riferimento, in modo da avere solo lui collegato verso l'esterno che condivide la connessione tramite LAN.
Attraverso la eth0 riesco ad uscire in rete senza nessun problema
Vorrei configurare la eth1 come gatway per la rete lan locale
ho impostato il mio /etc/network/interfaces così
Codice: Seleziona tutto
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 212.4.7.254
netmask 255.255.255.248
network 212.4.7.248
broadcast 212.4.7.255
gateway 212.4.7.249
auto eth1
iface eth1 inet static
address 212.4.7.253
netmask 255.255.255.248
network 212.4.7.248
broadcast 212.4.7.255
gateway 212.4.7.249Codice: Seleziona tutto
eth0 Link encap:Ethernet HWaddr 00:1A:4B:A8:50:5C
inet addr:212.4.7.254 Bcast:212.4.7.255 Mask:255.255.255.248
inet6 addr: fe80::21a:4bff:fea8:505c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1914 errors:0 dropped:0 overruns:0 frame:0
TX packets:1888 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1479351 (1.4 MiB) TX bytes:443730 (433.3 KiB)
Interrupt:169 Memory:fa000000-fa011100
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:569 errors:0 dropped:0 overruns:0 frame:0
TX packets:569 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:28472 (27.8 KiB) TX bytes:28472 (27.8 KiB)Codice: Seleziona tutto
sudo /etc/init.d/networking restartCodice: Seleziona tutto
* Reconfiguring network interfaces... SIOCSIFADDR: No such device
eth1: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
SIOCSIFBRDADDR: No such device
eth1: ERROR while getting interface flags: No such device
eth1: ERROR while getting interface flags: No such device
Failed to bring up eth1.
[ ok ]
Codice: Seleziona tutto
0000:00:00.0 Host bridge: Intel Corporation 5000Z Chipset Memory Controller Hub (rev b1)
0000:00:02.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x8 Port 2-3 (rev b1)
0000:00:03.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 3 (rev b1)
0000:00:04.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 4 (rev b1)
0000:00:05.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 5 (rev b1)
0000:00:10.0 Host bridge: Intel Corporation 5000 Series Chipset FSB Registers (rev b1)
0000:00:10.1 Host bridge: Intel Corporation 5000 Series Chipset FSB Registers (rev b1)
0000:00:10.2 Host bridge: Intel Corporation 5000 Series Chipset FSB Registers (rev b1)
0000:00:11.0 Host bridge: Intel Corporation 5000 Series Chipset Reserved Registers (rev b1)
0000:00:13.0 Host bridge: Intel Corporation 5000 Series Chipset Reserved Registers (rev b1)
0000:00:15.0 Host bridge: Intel Corporation 5000 Series Chipset FBD Registers (rev b1)
0000:00:16.0 Host bridge: Intel Corporation 5000 Series Chipset FBD Registers (rev b1)
0000:00:1c.0 PCI bridge: Intel Corporation 631xESB/632xESB/3100 Chipset PCI Express Root Port 1 (rev 09)
0000:00:1d.0 USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #1 (rev 09)
0000:00:1d.1 USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #2 (rev 09)
0000:00:1d.2 USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #3 (rev 09)
0000:00:1d.3 USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #4 (rev 09)
0000:00:1d.7 USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset EHCI USB2 Controller (rev 09)
0000:00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev d9)
0000:00:1f.0 ISA bridge: Intel Corporation 631xESB/632xESB/3100 Chipset LPC Interface Controller (rev 09)
0000:00:1f.1 IDE interface: Intel Corporation 631xESB/632xESB IDE Controller (rev 09)
0000:01:03.0 VGA compatible controller: ATI Technologies Inc ES1000 (rev 02)
0000:01:04.0 System peripheral: Compaq Computer Corporation Integrated Lights Out Controller (rev 03)
0000:01:04.2 System peripheral: Compaq Computer Corporation Integrated Lights Out Processor (rev 03)
0000:01:04.4 USB Controller: Hewlett-Packard Company Proliant iLO2 virtual USB controller
0000:01:04.6 IPMI SMIC interface: Hewlett-Packard Company Proliant iLO2 virtual UART
0000:02:00.0 PCI bridge: Broadcom EPB PCI-Express to PCI-X Bridge (rev c3)
0000:03:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5708 Gigabit Ethernet (rev 12)
0000:04:00.0 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express Upstream Port (rev 01)
0000:04:00.3 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express to PCI-X Bridge (rev 01)
0000:05:00.0 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express Downstream Port E1 (rev 01)
0000:05:01.0 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express Downstream Port E2 (rev 01)
0000:12:00.0 PCI bridge: Broadcom EPB PCI-Express to PCI-X Bridge (rev b4)
0000:13:04.0 PCI bridge: Broadcom BCM5785 [HT1000] PCI/PCI-X Bridge (rev b2)
0000:13:08.0 RAID bus controller: Hewlett-Packard Company Smart Array E200i (SAS Controller)
administrator@asterisc:~$ sudo lspci
0000:00:00.0 Host bridge: Intel Corporation 5000Z Chipset Memory Controller Hub (rev b1)
0000:00:02.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x8 Port 2-3 (rev b1)
0000:00:03.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 3 (rev b1)
0000:00:04.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 4 (rev b1)
0000:00:05.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 5 (rev b1)
0000:00:10.0 Host bridge: Intel Corporation 5000 Series Chipset FSB Registers (rev b1)
0000:00:10.1 Host bridge: Intel Corporation 5000 Series Chipset FSB Registers (rev b1)
0000:00:10.2 Host bridge: Intel Corporation 5000 Series Chipset FSB Registers (rev b1)
0000:00:11.0 Host bridge: Intel Corporation 5000 Series Chipset Reserved Registers (rev b1)
0000:00:13.0 Host bridge: Intel Corporation 5000 Series Chipset Reserved Registers (rev b1)
0000:00:15.0 Host bridge: Intel Corporation 5000 Series Chipset FBD Registers (rev b1)
0000:00:16.0 Host bridge: Intel Corporation 5000 Series Chipset FBD Registers (rev b1)
0000:00:1c.0 PCI bridge: Intel Corporation 631xESB/632xESB/3100 Chipset PCI Express Root Port 1 (rev 09)
0000:00:1d.0 USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #1 (rev 09)
0000:00:1d.1 USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #2 (rev 09)
0000:00:1d.2 USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #3 (rev 09)
0000:00:1d.3 USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #4 (rev 09)
0000:00:1d.7 USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset EHCI USB2 Controller (rev 09)
0000:00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev d9)
0000:00:1f.0 ISA bridge: Intel Corporation 631xESB/632xESB/3100 Chipset LPC Interface Controller (rev 09)
0000:00:1f.1 IDE interface: Intel Corporation 631xESB/632xESB IDE Controller (rev 09)
0000:01:03.0 VGA compatible controller: ATI Technologies Inc ES1000 (rev 02)
0000:01:04.0 System peripheral: Compaq Computer Corporation Integrated Lights Out Controller (rev 03)
0000:01:04.2 System peripheral: Compaq Computer Corporation Integrated Lights Out Processor (rev 03)
0000:01:04.4 USB Controller: Hewlett-Packard Company Proliant iLO2 virtual USB controller
0000:01:04.6 IPMI SMIC interface: Hewlett-Packard Company Proliant iLO2 virtual UART
0000:02:00.0 PCI bridge: Broadcom EPB PCI-Express to PCI-X Bridge (rev c3)
0000:03:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5708 Gigabit Ethernet (rev 12)
0000:04:00.0 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express Upstream Port (rev 01)
0000:04:00.3 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express to PCI-X Bridge (rev 01)
0000:05:00.0 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express Downstream Port E1 (rev 01)
0000:05:01.0 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express Downstream Port E2 (rev 01)
0000:12:00.0 PCI bridge: Broadcom EPB PCI-Express to PCI-X Bridge (rev b4)
0000:13:04.0 PCI bridge: Broadcom BCM5785 [HT1000] PCI/PCI-X Bridge (rev b2)
0000:13:08.0 RAID bus controller: Hewlett-Packard Company Smart Array E200i (SAS Controller)