众所周知,我们可以通过这种方式连接有线以太网。但是,当没有Ubuntu桌面GUI时,我找不到连接或断开有线以太网的方法。
此外,我正在使用校园网络。这意味着我要做的是单击“关闭”或“打开”,而我不必输入宽带帐户和密码。
因此,是否有任何终端命令可以意识到“关闭”或“打开”的单击?

As we all know, we can connect wired Ethernet by this way. When there is no Ubuntu desktop GUI, however, i have found no way to connect or disconnect that wired Ethernet.
Moreover, i am using campus network. That means what should i do is click "Turn Off" or "Turn On",and i don't have to enter a broadband account and password.
So are there any terminal commands can realize the clicking of "Turn Off" or "Turn On" ?
发布评论
评论(1)
是的,您可以使用IFCONFIG命令,
假设这是您的唯一端口,那么它将具有ETH0的标签,
这意味着命令
向下开关端口,如果我想将其打开,请在命令上打开命令是
方便的指南,用于某些Linux终端命令与IfConfig https://www.tecmint.com/ifconfig-config-command-examples/#:text=the %20“下降”%20or%20“如果Down,为%20in%20AN%20inactive%20State 。
Yes you can but using the ifconfig command
Assuming that this is your only port then it will have the tag of eth0
Which will mean the command is
Down switches the port off, if I want to turn it on the command is
Handy guide for some Linux Terminal commands to do with ifconfig https://www.tecmint.com/ifconfig-command-examples/#:~:text=The%20“down”%20or%20“ifdown,is%20in%20an%20inactive%20state.