Related Items  

Linux and Windows IT Support  

dedicated-technology-experts

Windows, Apple and Linux IT support and services.

For Software and Web Development.

Details

PrintE-mail
Hi. I'm new to linux. I'm trying to access 2 networks from the same pc with 1 NIC. Main network: IP: 192.168.15.30 Mask: 255.255.255.0 Gateway: 192.0168.15.254 Secondary network: IP: 192.168.1.30 Mask: 255.255.255.0 Gateway: 192.168.1.254 I tried your example: sudo ifconfig eth0:0 192.168.1.30 up and it worked fine. Now I want to make it permanent but I can't figure out what to add to my /etc/network/interfaces file. auto eth0:0 iface eth0:0 inet static name Ethernet alias LAN card address 192.168.1.30 netmask 255.255.255.0 broadcast 192.168.1.254 network 192.168.1.254 Is this correct? It is not working for me. Thanks in advance. Regards, Rurinho
   
Copyright © 1999 - 2025 Virtual Helpme | IT Services Catered to Your Business | Original Template: Allrounder