hej jeg vil gerne sætte denne ipadresse på min ubuntu 20.04 server
men hvordan gør jeg det ? se nedestående config
# The external WAN interface (eth0)
allow-hotplug eth0
iface eth0 inet dhcp
# The internal LAN interface (eth1)
allow-hotplug eth1
iface eth1 inet static
address 10.0.0.1
netmask 255.0.0.0
network 10.0.0.0
broadcast 10.0.0.255
IP adresser IPv4
-
- Indlæg: 366
- Tilmeldt: 16. jul 2019, 14:44
- Geografisk sted: Pandrup
IP adresser IPv4
De bedste hilsner
Niels Sørensen
Ha en glad dag
Niels Sørensen
Ha en glad dag
-
- Admin
- Indlæg: 5584
- Tilmeldt: 26. apr 2010, 02:40
- IRC nickname: ClaudiuS
- Geografisk sted: Nyborg [fyn]
Re: IP adresser IPv4
snoefte skrev:hej jeg vil gerne sætte denne ipadresse på min ubuntu 20.04 server
Undskyld men hvilken IP?
Kan du bruge denne?
https://linuxize.com/post/how-to-configure-static-ip-address-on-ubuntu-20-04/
Med Venlig Hilsen
Klaus
Kører Ubuntu 22.04 på ASUS All-Series, og Probook 4520s.
Gratis Ubuntumagasin: http://fullcirclemagazine.org/
https://mega.nz/folder/aJsmCYKa#dxMHKTi4Idmz6hiVpsI68Q
Klaus
Kører Ubuntu 22.04 på ASUS All-Series, og Probook 4520s.
Gratis Ubuntumagasin: http://fullcirclemagazine.org/
https://mega.nz/folder/aJsmCYKa#dxMHKTi4Idmz6hiVpsI68Q
-
- Indlæg: 366
- Tilmeldt: 16. jul 2019, 14:44
- Geografisk sted: Pandrup
Re: IP adresser IPv4
denne IP
# The internal LAN interface (eth1)
allow-hotplug eth1
iface eth1 inet static
address 10.0.0.1
netmask 255.0.0.0
network 10.0.0.0
broadcast 10.0.0.255
# The internal LAN interface (eth1)
allow-hotplug eth1
iface eth1 inet static
address 10.0.0.1
netmask 255.0.0.0
network 10.0.0.0
broadcast 10.0.0.255
De bedste hilsner
Niels Sørensen
Ha en glad dag
Niels Sørensen
Ha en glad dag
-
- Indlæg: 366
- Tilmeldt: 16. jul 2019, 14:44
- Geografisk sted: Pandrup
Re: IP adresser IPv4
har fundet ud af at det er noget med Netpan at gøre men jeg sidder lidt fast her
# Let NetworkManager manage all devices on this system
network:
version: 2
renderer: NetworkManager
ethernets:
enp0s25:
addresses:
- 192.168.1.100/24
dhcp4: true
gateway4: 192.168.1.1
nameservers:
addresses:
- 192.168.1.1
enx00e04c6802ee
addresses:
- 10.0.0.1/24
dhcp4: false
nameservers:
addresses:
- 8.8.8.8
- 8.8.4.4
version: 2
den kommer og skriver denne meddelse :
/etc/netplan/01-network-manager-all.yaml:5:14: Invalid YAML: inconsistent indentation:
ethernets:
^
# Let NetworkManager manage all devices on this system
network:
version: 2
renderer: NetworkManager
ethernets:
enp0s25:
addresses:
- 192.168.1.100/24
dhcp4: true
gateway4: 192.168.1.1
nameservers:
addresses:
- 192.168.1.1
enx00e04c6802ee
addresses:
- 10.0.0.1/24
dhcp4: false
nameservers:
addresses:
- 8.8.8.8
- 8.8.4.4
version: 2
den kommer og skriver denne meddelse :
/etc/netplan/01-network-manager-all.yaml:5:14: Invalid YAML: inconsistent indentation:
ethernets:
^
De bedste hilsner
Niels Sørensen
Ha en glad dag
Niels Sørensen
Ha en glad dag
-
- Indlæg: 366
- Tilmeldt: 16. jul 2019, 14:44
- Geografisk sted: Pandrup
Re: IP adresser IPv4
denne her virker
network:
ethernets:
enp0s25:
addresses:
- 192.168.1.100/24
gateway4: 192.168.1.1
nameservers:
addresses:
- 192.168.1.1
enx00e04c6802ee:
addresses:
- 10.0.0.1/8
dhcp4: false
nameservers:
addresses:
- 8.8.8.8
- 8.8.4.4
version: 2
network:
ethernets:
enp0s25:
addresses:
- 192.168.1.100/24
gateway4: 192.168.1.1
nameservers:
addresses:
- 192.168.1.1
enx00e04c6802ee:
addresses:
- 10.0.0.1/8
dhcp4: false
nameservers:
addresses:
- 8.8.8.8
- 8.8.4.4
version: 2
De bedste hilsner
Niels Sørensen
Ha en glad dag
Niels Sørensen
Ha en glad dag