network configuration.

More
5 years 3 weeks ago - 5 years 3 weeks ago #222502 by andypugh
Replied by andypugh on topic network configuration.
In that case, I would suggest ignoring the GUI options and doing what the LinuxCNC docs suggest:

linuxcnc.org/docs/2.8/html/man/man9/hm2_...FACE%20CONFIGURATION

ie, edit the interfaces file to force what you want.

(but be sure that you use the correct name for the interface, the example uses "eth1" but yours might well be something else.

To find out open a terminal and issue the command "ip link"

In my case I get
Code:
andypugh@rm-one:~/infrastructure$ ip link 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: eno2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000 link/ether 7c:05:07:10:3a:44 brd ff:ff:ff:ff:ff:ff 3: wlx40a5ef05a291: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000 link/ether 40:a5:ef:05:a2:91 brd ff:ff:ff:ff:ff:ff
And can guess that my hardwired ethernet is eno2 (because I know that wlx40a5ef05a291 is my USB wifi dongle)
Last edit: 5 years 3 weeks ago by andypugh.
The following user(s) said Thank You: behai

Please Log in or Create an account to join the conversation.

More
5 years 3 weeks ago #222537 by rodw
Replied by rodw on topic network configuration.
I've been researching this today cos I don't seem to have a gui network tool on Debian Bullseye
Try this after you use Andy's trick to find the interface name
Code:
sudo nano /etc/network/interfaces
add this to the file
Code:
auto [your-ethernet-device-name] iface [your-ethernet-device-name] inet static address 10.10.10.1 netmask 255.255.255.0

Then restart the network
Code:
ifdown -a; ifup -a
The following user(s) said Thank You: behai

Please Log in or Create an account to join the conversation.

More
5 years 1 week ago #224102 by Deese
Replied by Deese on topic network configuration.
I have a question, after I have edited my interfaces file is it normal for the eth adapter status to be down if there is no other device on the network? If I run ifup -a it gives message "file exists ifup failed to bring up enp0s25"  I have not bought the mesa card yet I am just preparing for it.

Please Log in or Create an account to join the conversation.

More
5 years 6 days ago #224358 by rodw
Replied by rodw on topic network configuration.
I think you would be able to ping it but because its not connected to anything it will show as down  (just my guess)

Please Log in or Create an account to join the conversation.

More
1 year 9 months ago #319616 by behai
Replied by behai on topic network configuration.
Hi,

I have just received my Mesa 7i96s today from Mr. Andrew Beck of BECK CNC.

I left W4 and W5 at their default setting ( I can't see jumpers :) ) And I have followed the instructions given in this thread, and I am able to ping it.

This is what I have done:

With the Ethernet cable connected between Mesa 7i96s and Raspberry Pi4

[
behai@picnc:~ $ ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
    link/ether d8:3a:dd:25:8c:37 brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DORMANT group default qlen 1000
    link/ether d8:3a:dd:25:8c:38 brd ff:ff:ff:ff:ff:ff
]

I notice that eth0 shows <BROADCAST,MULTICAST,UP,LOWER_UP>

With the Ethernet cable disconnected:

[
behai@picnc:~ $ ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
    link/ether d8:3a:dd:25:8c:37 brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DORMANT group default qlen 1000
    link/ether d8:3a:dd:25:8c:38 brd ff:ff:ff:ff:ff:ff
]

I notice that eth0 shows <NO-CARRIER,BROADCAST,MULTICAST,UP>

So I guess my hardwired ethernet is eth0.

Then I log into my home router to verify that 192.168.1/24 is not in used as per the official manual instruction.

I then added the following lines into /etc/network/interfaces:

[
auto eth0
iface eth0 inet static
address 192.168.1.121
hardware-irq-coalesce-rx-usecs 0
]

Then I ran sudo ifdown -a followed by sudo ifup -a, both ran successfully. I.e. they produced no output.

Then finally: ping 192.168.1.121

The response is continuous until I pressed Control + C to interrupt.

I HAVE A QUESTION, PLEASE:

While the pinging was running, I disconnected the Ethernet cable, I expect the response to stop or at least to halt, but it did not. It continues to produce pinging notifications. Is this normal, please?

Thank you and best regards,

...behai.




 
The following user(s) said Thank You: rodw

Please Log in or Create an account to join the conversation.

More
1 year 9 months ago #319618 by rodw
Replied by rodw on topic network configuration.
Please watch my video

start at about 16 minutes in if you want to get to the section on networking
The following user(s) said Thank You: behai

Please Log in or Create an account to join the conversation.

Time to create page: 0.069 seconds
Powered by Kunena Forum