Jeg har prøvet at tilføje en bridge til min ubuntu maskine, hvilket resulterede i at den gik kold.
Nogen der umiddelbart kan se fejlen i nedenstående /etc/network/interfaces ?
auto venet0 lo
iface venet0 inet static
address 127.0.0.1
netmask 255.255.255.255
broadcast 0.0.0.0
up route add -net 192.0.2.1 netmask 255.255.255.255 dev venet0
up route add default gw 192.0.2.1
iface lo inet loopback
iface br0 inet static
address 90.72.41.91
netmask 255.255.255.255
broadcast 0.0.0.0
bridge_ports venet0:0
iface venet0:0 inet manual
up ifconfig $IFACE 0.0.0.0 up
up ip link set $IFACE promisc on
down ip link set $IFACE promisc off
down ifconfig $IFACE down
Her er serverens oprindelige konfiguration:
auto venet0 lo
iface venet0 inet static
address 127.0.0.1
netmask 255.255.255.255
broadcast 0.0.0.0
up route add -net 192.0.2.1 netmask 255.255.255.255 dev venet0
up route add default gw 192.0.2.1
iface lo inet loopback
auto venet0:0
iface venet0:0 inet static
address 90.72.41.91
netmask 255.255.255.255
broadcast 0.0.0.0
/etc/network/interfaces
-
- Indlæg: 5
- Tilmeldt: 8. jul 2009, 23:41
- IRC nickname: RealMuhko
-
- Indlæg: 5095
- Tilmeldt: 27. apr 2008, 02:16
- IRC nickname: lars_t_h
- Geografisk sted: Fyn
Re: /etc/network/interfaces
RealMuhko skrev:Jeg har prøvet at tilføje en bridge til min ubuntu maskine, hvilket resulterede i at den gik kold.
Nogen der umiddelbart kan se fejlen i nedenstående /etc/network/interfaces ?
auto venet0 lo
iface venet0 inet static
address 127.0.0.1
netmask 255.255.255.255
broadcast 0.0.0.0
up route add -net 192.0.2.1 netmask 255.255.255.255 dev venet0
up route add default gw 192.0.2.1
iface lo inet loopback
iface br0 inet static
address 90.72.41.91
netmask 255.255.255.255
broadcast 0.0.0.0
bridge_ports venet0:0
iface venet0:0 inet manual
up ifconfig $IFACE 0.0.0.0 up
up ip link set $IFACE promisc on
down ip link set $IFACE promisc off
down ifconfig $IFACE down
Her er serverens oprindelige konfiguration:
auto venet0 lo
iface venet0 inet static
address 127.0.0.1
netmask 255.255.255.255
broadcast 0.0.0.0
up route add -net 192.0.2.1 netmask 255.255.255.255 dev venet0
up route add default gw 192.0.2.1
iface lo inet loopback
auto venet0:0
iface venet0:0 inet static
address 90.72.41.91
netmask 255.255.255.255
broadcast 0.0.0.0
br0 mangler en gateway IP adresse, og
br0 har en ukorrekt netmask, og
90.72.41.91 er en offentlige IP adresse (det modsatte af en privat IP adresse).
Private IP adresser:
RFC1918 name,IP address range,number of addresses,classful description,largest CIDR block (subnet mask) , host id size
24-bit block, 10.0.0.0 – 10.255.255.255 , 16.777.216, single class A, 10.0.0.0/8 (255.0.0.0), 24 bits
20-bit block, 172.16.0.0 – 172.31.255.255, 1.048.576, 16 contiguous class Bs, 172.16.0.0/12 (255.240.0.0), 20 bits
16-bit block, 192.168.0.0 – 192.168.255.255, 65.536, 256 contiguous class Cs, 192.168.0.0/16 (255.255.0.0), 16 bits
Hvis du vil undgå problemer, så brug private IP adresser i private netværk.
/Lars
Jeg er Software ingeniør (Diplomingeniør) i Informationsteknologi og indlejede systemer, hvor indlejrede systemer er computer (microcontroller) + elektronik i for eksempel et TV, en router, en vaskemaskine og den slags