Changing RED<-->GREEN

v7
server-manager
network

(Marko Dargel) #1

NethServer Version: 7.4
Module: nn
Hi,
after installation wit your incredible support, the system comes up but the network cards are mismatched.
What is:
eth0= green/ LAN 192.168.1.4 via DHPC form my router
–>Accessing Server Manager possible from clients inside the subnet 192.168.1.0/24

what I need:
eth0=red, 192.164.1.4 via DHCP
—> Accessing Server Manager impossible
–> traffic forwarding from subnet 192.168.2.0/24 to my router 192.168.1.1

eth1:=green, 192.168.2.1 static
–> DHCP and DNS for subnet 192.168.2.0/24
–>Accessing Server Manager possible from any client inside the 192.168.2.0/24 subnet

How could i change the configuration?
Is there a setup program for terminal (local connected or ssh)?

Best Regards, Marko


(Markus Neuberger) #2

Hi Marko,

to change it via Server manager go to Configuration/Network:

grafik

here are the relevant docs:

http://docs.nethserver.org/en/v7/base_system.html#network
http://docs.nethserver.org/projects/nethserver-devel/en/v7/nethserver-base.html

Another approach is to reset network and do the rest via web UI:

http://docs.nethserver.org/projects/nethserver-devel/en/v7/nethserver-base.html#reset-network-configuration


Installation hangs
(Marc) #3

You can configure eth1 as green. Once configured change eth0 from green to red.
You can restrict access from RED configuring httpd-admin service (Security > Network Services).

Network can also be configured from command line, but it seems easier using the server-manager.


(Marko Dargel) #4

Hi Marc, thank you.
That was my first idea I tried. But the system froze in the moment when two green interfaces became active. The service manager was not accessible. I had to reinstall the whole system.
Best regards, Marko


(Marc) #5

Sorry to hear your system froze, it worked for me. If you encounter the same problem and want to avoid reinstallation, you can reset the network (as described in the manual, see links posted by @mrmarkuz) as well as changing network configuration from command line:


(Marko Dargel) #6

Thank you Marc,
I will remeber it.
Best regards, Marko