Hello,
I have a freshly installed Debian on my Server and now i ran into some issues.
- The Server ist attached to a Network Switch, which is connected to my Laptop and my Router. Thanks to DHCP i have an internet connection on interface eno1. But now I want to add another network interface on the Server with a static ip, to make a local network with my laptop and my server while keeping the server connected to the internet via the switch+Router with its configured eno1 network interface.
When i just add another interface e.g. eno2 in /etc/network/interfaces like this:
auto eno2
iface eno2 inet static
address 192.168.2.1
netmask 255.255.255.0
it just gives me an error after restarting networking.service that the interface eno2 is unknown.
How can i add multiple network interfaces separated from each other on the debian system?
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
other question would be:
How can i assign a static ipv6 adress to my server, so it is reachable from the internet?
Hope somebody can help me, thank you!
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
[Software] [Solved] Networking for Beginners
-
- Posts: 5
- Joined: 2023-01-27 10:41
- Has thanked: 3 times
[Software] [Solved] Networking for Beginners
Last edited by karottenkopf on 2023-04-05 16:29, edited 1 time in total.
- fabien
- Forum Helper
- Posts: 669
- Joined: 2019-12-03 12:51
- Location: Anarres (Toulouse, France actually)
- Has thanked: 61 times
- Been thanked: 154 times
Re: [Software] Networking for Beginners
Hello,karottenkopf wrote: ↑2023-01-27 10:58How can i add multiple network interfaces separated from each other on the debian system?
take a look at
Code: Select all
man 5 interfaces
VLAN INTERFACES
To ease the configuration of VLAN interfaces, interfaces having . (full stop character) in the name are configured as 802.1q tagged virtual LAN interface. For example, interface eth0.1 is a
virtual interface with VLAN ID 1 having eth0 as its parent interface.
Does DHCP provide your server with an IPv6 address? If yes, this address should not change until the real interface (the network card) change.karottenkopf wrote: ↑2023-01-27 10:58How can i assign a static ipv6 adress to my server, so it is reachable from the internet?
-
- Global Moderator
- Posts: 3049
- Joined: 2017-09-17 07:12
- Has thanked: 5 times
- Been thanked: 132 times
Re: [Software] Networking for Beginners
Do you want to configure a second existing physical network interface (if the server has two ethernet ports), or add a static IP address to eno1, or create IEEE802.1q tagged VLAN interfaces on eno1 (assuming the switch supports IEEE802.1q) ?karottenkopf wrote: ↑2023-01-27 10:58 I want to add another network interface on the Server with a static ip
Code: Select all
iface eno1 inet6 static
address xxx:xxx/nn
gateway xxx:xxx
- cds60601
- df -h | participant
- Posts: 724
- Joined: 2017-11-25 05:58
- Location: Florida
- Has thanked: 133 times
- Been thanked: 64 times
Re: [Software] Networking for Beginners
Couple things (30,000 foot view).karottenkopf wrote: ↑2023-01-27 10:58 Hello,
I have a freshly installed Debian on my Server and now i ran into some issues.
- The Server ist attached to a Network Switch, which is connected to my Laptop and my Router. Thanks to DHCP i have an internet connection on interface eno1. But now I want to add another network interface on the Server with a static ip, to make a local network with my laptop and my server while keeping the server connected to the internet via the switch+Router with its configured eno1 network interface.
1. Is the network switch also dishing out a DHCP address (some do) along with your router?
2. If the server has been assigned an IP via DHCP, I would think that your laptop is on the same network as the server, no?
If 2 is true, then what you can do is hop on the server (assuming you have a monitor on it also) and simply remove the dhcp service and assign the nic a static IP within the range that either your switch or router is handing out).
If you can't access the console physically, and you already know the IP address and assuming you can ping it from the laptop, simply ssh into it and triple check your settings before you restart the network services. Not the best option to do but do-able.
For further reading on working with your interfaces, look here: https://wiki.debian.org/NetworkConfiguration
Supercalifragilisticexpialidocious
Re: [Software] Networking for Beginners
Question, what command do you use or how do you get the gateway ipv6 address?karottenkopf wrote: ↑2023-01-27 10:58For details, see man interfaces.Code: Select all
iface eno1 inet6 static address xxx:xxx/nn gateway xxx:xxx
-
- Posts: 5
- Joined: 2023-01-27 10:41
- Has thanked: 3 times
Re: [Software] Networking for Beginners
VLAN was the solution to my problem! thank you all for the quick answers!
-
- Global Moderator
- Posts: 2933
- Joined: 2014-07-20 18:12
- Location: Europe
- Has thanked: 72 times
- Been thanked: 401 times
Re: [Software] Networking for Beginners
Hello,
Can you share working configuration files ?karottenkopf wrote: ↑2023-03-31 19:30 VLAN was the solution to my problem! thank you all for the quick answers!
-
- Posts: 5
- Joined: 2023-01-27 10:41
- Has thanked: 3 times
Re: [Software] Networking for Beginners
It was a server i set up for testing, so I don't have the files anymore. But to connect to multiple networks with the same network interface, VLAN was the solution which worked for me.
-
- Global Moderator
- Posts: 2933
- Joined: 2014-07-20 18:12
- Location: Europe
- Has thanked: 72 times
- Been thanked: 401 times
Re: [Software] Networking for Beginners
Hello,
Thank you for updating the thread.
It could be useful for other viewers to mark the thread as "Solved" putting the prefix "[Solved]" before the subject of the first message of the thread, for example:
Thank you for updating the thread.
It could be useful for other viewers to mark the thread as "Solved" putting the prefix "[Solved]" before the subject of the first message of the thread, for example:
Thanks.[Software] [Solved] Networking for Beginners