Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
im using a USB Ethernet Adapter for my machine and I would like to setup static IP for that. Ive been following tutorials from other sources but it only applies to cable ethernet.
Open a terminal (or ssh into your server from another computer) and run the command ip addr show copy the terminal output text and paste it directly in your question. Then format the pasted text as code using the {_} icon in the edit window. The process of assigning a static IP is the same for Ethernet cable directly connected to your server or via an USB Ethernet Adapter.
Edit your question and add more information about your Ubuntu server. Is it connected to a router at home or in a commercial (office) set up? If at home, you may want to reserve an IP address in your home router's setting.
ip addr show
copy the terminal output text and paste it directly in your question. Then format the pasted text ascode
using the {_} icon in the edit window. The process of assigning a static IP is the same for Ethernet cable directly connected to your server or via an USB Ethernet Adapter.