Network issue
- Kasper-001
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 81
- Thank you received: 5
27 Dec 2021 18:02 #230071
by Kasper-001
Network issue was created by Kasper-001
hello i have 4 lan ports on my pc for linuxcnc, port 1 is for internet - port2 for mesa board, my issue are when i make both ports auto connect, i take port2 as first choice, even if i set port 1 priority 10 and port 2 -10, so i turn off auto connect for port 2, and have to manuel connect port 2 at start up, is there a easy solution for this
Attachments:
Please Log in or Create an account to join the conversation.
- rodw
- Offline
- Platinum Member
Less
More
- Posts: 10795
- Thank you received: 3556
27 Dec 2021 18:15 #230073
by rodw
Replied by rodw on topic Network issue
I would follow the instructions here to set the mesa network NIC on the PC
linuxcnc.org/docs/2.8/html/man/man9/hm2_...FACE%20CONFIGURATION
That removes any auto from the equation
linuxcnc.org/docs/2.8/html/man/man9/hm2_...FACE%20CONFIGURATION
That removes any auto from the equation
Please Log in or Create an account to join the conversation.
- Kasper-001
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 81
- Thank you received: 5
27 Dec 2021 19:18 - 27 Dec 2021 19:18 #230078
by Kasper-001
Replied by Kasper-001 on topic Network issue
everything works mesa and internet, the only problem i have is that i always have to click connect on port 2 ( the port for mesa at ip 10.10.10.10 crossover cable) on reboot, because it fails in auto mode,
port 1 is connect to home lan network 192.168.1.--
i get this when i try to edit the interface file :
cnc@debian:~$ sudo edit /etc/networking/interfaces
Error: no write permission for file "/etc/networking/interfaces"
cnc@debian:~$
port 1 is connect to home lan network 192.168.1.--
i get this when i try to edit the interface file :
cnc@debian:~$ sudo edit /etc/networking/interfaces
Error: no write permission for file "/etc/networking/interfaces"
cnc@debian:~$
Last edit: 27 Dec 2021 19:18 by Kasper-001.
Please Log in or Create an account to join the conversation.
- rodw
- Offline
- Platinum Member
Less
More
- Posts: 10795
- Thank you received: 3556
28 Dec 2021 00:40 #230102
by rodw
Replied by rodw on topic Network issue
try it without the crossover cable. They have not been needed for years.
You may not be in the sudoers group.
Try su instead.
You may not be in the sudoers group.
Try su instead.
Please Log in or Create an account to join the conversation.
- Kasper-001
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 81
- Thank you received: 5
28 Dec 2021 07:42 #230126
by Kasper-001
Replied by Kasper-001 on topic Network issue
ups it is a straight cable
also when im in root user i can´t access it
cnc@debian:~$ sudo edit /etc/networking/interfaces
[sudo] adgangskode for cnc:
Error: no write permission for file "/etc/networking/interfaces"
cnc@debian:~$ sudo su
root@debian:/home/cnc# edit /etc/networking/interfaces
Error: no write permission for file "/etc/networking/interfaces"
root@debian:/home/cnc#
can it be network manager that´s deny accesses it ?
cnc@debian:~$ sudo edit /etc/networking/interfaces
[sudo] adgangskode for cnc:
Error: no write permission for file "/etc/networking/interfaces"
cnc@debian:~$ sudo su
root@debian:/home/cnc# edit /etc/networking/interfaces
Error: no write permission for file "/etc/networking/interfaces"
root@debian:/home/cnc#
can it be network manager that´s deny accesses it ?
Attachments:
Please Log in or Create an account to join the conversation.
- ALittleOffTheRails
- Visitor
28 Dec 2021 10:02 #230128
by ALittleOffTheRails
Replied by ALittleOffTheRails on topic Network issue
Can you try
As root you should have access to any file in /etc unless something has gone wrong with your permissions
ls -la /etc/networking/interfaces
As root you should have access to any file in /etc unless something has gone wrong with your permissions
Please Log in or Create an account to join the conversation.
- Kasper-001
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 81
- Thank you received: 5
28 Dec 2021 10:20 #230130
by Kasper-001
Replied by Kasper-001 on topic Network issue
i just removed network manager by mistake i have no internet on the machine now, is the only sulotion to install linuxcnc all over ?
Please Log in or Create an account to join the conversation.
- ALittleOffTheRails
- Visitor
28 Dec 2021 10:27 #230131
by ALittleOffTheRails
Replied by ALittleOffTheRails on topic Network issue
Info here:
wiki.debian.org/NetworkConfiguration
But first we need to fix the permissions and ownership of the interfaces file.
So if you can run the command in my previous post and relay the output can can go from there.
wiki.debian.org/NetworkConfiguration
But first we need to fix the permissions and ownership of the interfaces file.
So if you can run the command in my previous post and relay the output can can go from there.
Please Log in or Create an account to join the conversation.
- Kasper-001
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 81
- Thank you received: 5
28 Dec 2021 10:39 #230134
by Kasper-001
Replied by Kasper-001 on topic Network issue
i get this
- rw - r - - r - - root root 240 aug 31 14:34 /etc/network/interfaces
- rw - r - - r - - root root 240 aug 31 14:34 /etc/network/interfaces
Please Log in or Create an account to join the conversation.
- ALittleOffTheRails
- Visitor
28 Dec 2021 11:03 - 28 Dec 2021 11:11 #230135
by ALittleOffTheRails
Replied by ALittleOffTheRails on topic Network issue
ok you need to edit and follow the instructions in the link I supplied
/etc/network/interfaces
not
/etc/networking/interfaces
if you had of ran
you should have got
/etc/network/interfaces
not
/etc/networking/interfaces
if you had of ran
ls -la /etc/networking/interfaces
you should have got
ls: cannot access '/etc/networking/interfaces': No such file or directory
Last edit: 28 Dec 2021 11:11 by ALittleOffTheRails.
Please Log in or Create an account to join the conversation.
Time to create page: 0.132 seconds