Where to change ip address

Hello Garuda users.

Newbie question: Where do I go to change my pc's ip address?

Thanks...

Update 1: There is no "Network Settings" under Settings. Also, under "System Settings" there's no way to change the ip. I also tried "Garuda Network Assistant"

Update 2: I also used ChatGPT and Bard to find the location prior to asking here. They were not helpful.

Update 3: ifconfig enp4s0
enp4s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.6 netmask 255.255.255.224 broadcast 192.168.1.31
inet6 fe80::2256:b93d:dab:96b8 prefixlen 64 scopeid 0x20
ether 00:1b:21:63:de:82 txqueuelen 1000 (Ethernet)
RX packets 55459 bytes 55495429 (52.9 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 28766 bytes 4340412 (4.1 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 24 memory 0xfc7c0000-fc7e0000

Please, follow the template.

1 Like

If you want to learn networking in general:
https://wiki.archlinux.org/title/Network_configuration
But I suspect you have KDE (with garuda-inxi this wouldn't be a suspect, add it to every topic), so simply the relevant:
https://wiki.archlinux.org/title/NetworkManager
Also there, interesting reading, but in the end you should be able to do anything from the widget.

3 Likes

Guy's, I am frustrated by the reaction I received regarding my post "Where to change ip address". I have stated that I am new to Garuda Linux. I am not, however, new to Linux. I haven't used any Arch based distros in years. I spent a couple of hours trying to find the location to change my ip address. I searched the web, I asked two of my favorite AI's, and I searched the forum. Nothing answered the question of where I go exactly to change it. My next logical step was to post the question here. I assumed that my ixii wouldn't be necessary for such a simple question. Apparently, I was wrong. However, I did not deserve having my post flagged and the ability to reply turned off. A simple recommendation/suggestion would have sufficed and I would have made the necessary change.

FYI: I don't expect a response, I just needed to vent.

Forum-Ding

Apparently I cannot edit my original post, so here is my ixii:

garuda-inxi
System:
Kernel: 6.4.7-zen1-2-zen arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=aa096e21-7b73-43e1-add6-b5b9f291e249 rw rootflags=subvol=@
quiet quiet rd.udev.log_priority=3 vt.global_cursor_default=0 loglevel=3
ibt=off
Desktop: KDE Plasma v: 5.27.7 tk: Qt v: 5.15.10 wm: kwin_x11 vt: 2
dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Desktop System: ASUS product: N/A v: N/A serial: <superuser required>
Mobo: ASUSTeK model: ROG CROSSHAIR VIII HERO v: Rev X.0x
serial: <superuser required> UEFI: American Megatrends v: 3003
date: 12/04/2020
CPU:
Info: model: AMD Ryzen 9 3900X bits: 64 type: MT MCP arch: Zen 2 gen: 3
level: v3 note: check built: 2020-22 process: TSMC n7 (7nm)
family: 0x17 (23) model-id: 0x71 (113) stepping: 0 microcode: 0x8701021
Topology: cpus: 1x cores: 12 tpc: 2 threads: 24 smt: enabled cache:
L1: 768 KiB desc: d-12x32 KiB; i-12x32 KiB L2: 6 MiB desc: 12x512 KiB
L3: 64 MiB desc: 4x16 MiB
Speed (MHz): avg: 4114 high: 4242 min/max: 2200/4672 boost: enabled
scaling: driver: acpi-cpufreq governor: performance cores: 1: 4199 2: 4236
3: 4191 4: 4195 5: 3800 6: 3800 7: 4191 8: 4242 9: 4193 10: 4192 11: 4192
12: 4192 13: 4189 14: 3800 15: 4196 16: 4192 17: 4191 18: 4192 19: 4191
20: 3800 21: 3800 22: 4190 23: 4215 24: 4160 bogomips: 182047
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities: <filter>
Graphics:
Device-1: NVIDIA TU104 [GeForce RTX 2080 SUPER] vendor: Micro-Star MSI
driver: nvidia v: 535.86.05 alternate: nouveau,nvidia_drm non-free: 535.xx+
status: current (as of 2023-07) arch: Turing code: TUxxx
process: TSMC 12nm FF built: 2018-22 pcie: gen: 1 speed: 2.5 GT/s
lanes: 16 bus-ID: 09:00.0 chip-ID: 10de:1e81 class-ID: 0300
Device-2: Logitech Webcam Pro 9000 driver: snd-usb-audio,uvcvideo
type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-2.4:6
chip-ID: 046d:0809 class-ID: 0102 serial: <filter>
Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.1.2
compositor: kwin_x11 driver: X: loaded: nvidia unloaded: modesetting,nouveau
alternate: fbdev,nv,vesa gpu: nvidia display-ID: :0 screens: 1
Screen-1: 0 s-res: 3840x1080 s-dpi: 92 s-size: 1060x301mm (41.73x11.85")
s-diag: 1102mm (43.38")
Monitor-1: DP-0 pos: primary,left res: 1920x1080 dpi: 92
size: 532x304mm (20.94x11.97") diag: 613mm (24.12") modes: N/A
Monitor-2: HDMI-0 pos: right res: 1920x1080 hz: 60 dpi: 305
size: 160x90mm (6.3x3.54") diag: 184mm (7.23") modes: N/A
API: OpenGL v: 4.6.0 NVIDIA 535.86.05 renderer: NVIDIA GeForce RTX 2080
SUPER/PCIe/SSE2 direct-render: Yes
Audio:
Device-1: NVIDIA TU104 HD Audio vendor: Micro-Star MSI driver: snd_hda_intel
v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 16 bus-ID: 09:00.1
chip-ID: 10de:10f8 class-ID: 0403
Device-2: AMD Starship/Matisse HD Audio vendor: ASUSTeK
driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
bus-ID: 0b:00.4 chip-ID: 1022:1487 class-ID: 0403
Device-3: Logitech Webcam Pro 9000 driver: snd-usb-audio,uvcvideo
type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-2.4:6
chip-ID: 046d:0809 class-ID: 0102 serial: <filter>
Device-4: Razer USA BlackShark V2 Pro
driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 1.1 speed: 12 Mb/s
lanes: 1 mode: 1.1 bus-ID: 3-4:3 chip-ID: 1532:0528 class-ID: 0300
API: ALSA v: k6.4.7-zen1-2-zen status: kernel-api with: aoss
type: oss-emulator tools: N/A
Server-1: PipeWire v: 0.3.76 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: Realtek RTL8125 2.5GbE vendor: ASUSTeK driver: r8169 v: kernel
pcie: gen: 2 speed: 5 GT/s lanes: 1 port: e000 bus-ID: 03:00.0
chip-ID: 10ec:8125 class-ID: 0200
IF: enp3s0 state: down mac: <filter>
Device-2: Intel 82574L Gigabit Network driver: e1000e v: kernel pcie:
gen: 1 speed: 2.5 GT/s lanes: 1 port: d000 bus-ID: 04:00.0
chip-ID: 8086:10d3 class-ID: 0200
IF: enp4s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Device-3: Intel I211 Gigabit Network vendor: ASUSTeK driver: igb v: kernel
pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: c000 bus-ID: 05:00.0
chip-ID: 8086:1539 class-ID: 0200
IF: enp5s0 state: down mac: <filter>
Drives:
Local Storage: total: 6.37 TiB used: 152.96 GiB (2.3%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 860 EVO 500GB
size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
tech: SSD serial: <filter> fw-rev: 3B6Q scheme: GPT
ID-2: /dev/sdb maj-min: 8:16 vendor: Western Digital
model: WD1502FAEX-007BA0 size: 1.36 TiB block-size: physical: 512 B
logical: 512 B speed: 6.0 Gb/s tech: N/A serial: <filter> fw-rev: 1D05
scheme: GPT
ID-3: /dev/sdc maj-min: 8:32 vendor: Samsung model: SSD 860 EVO 500GB
size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
tech: SSD serial: <filter> fw-rev: 3B6Q scheme: GPT
ID-4: /dev/sdd maj-min: 8:48 vendor: Western Digital
model: WD1502FAEX-007BA0 size: 1.36 TiB block-size: physical: 512 B
logical: 512 B speed: 6.0 Gb/s tech: N/A serial: <filter> fw-rev: 1D05
scheme: GPT
ID-5: /dev/sde maj-min: 8:64 vendor: Western Digital
model: WD20EARX-32PASB0 size: 1.82 TiB block-size: physical: 512 B
logical: 512 B type: USB rev: 2.0 spd: 480 Mb/s lanes: 1 mode: 2.0
tech: N/A serial: <filter> fw-rev: 2021 scheme: MBR
ID-6: /dev/sdf maj-min: 8:80 vendor: Western Digital
model: WD10EADS-11M2B1 size: 931.51 GiB block-size: physical: 512 B
logical: 512 B type: USB rev: 2.0 spd: 480 Mb/s lanes: 1 mode: 2.0
tech: N/A serial: <filter> fw-rev: 1.75 scheme: MBR
Partition:
ID-1: / raw-size: 465.46 GiB size: 465.46 GiB (100.00%)
used: 152.96 GiB (32.9%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
ID-2: /home raw-size: 465.46 GiB size: 465.46 GiB (100.00%)
used: 152.96 GiB (32.9%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
ID-3: /var/log raw-size: 465.46 GiB size: 465.46 GiB (100.00%)
used: 152.96 GiB (32.9%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
ID-4: /var/tmp raw-size: 465.46 GiB size: 465.46 GiB (100.00%)
used: 152.96 GiB (32.9%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 31.25 GiB used: 0 KiB (0.0%) priority: 100
dev: /dev/zram0
Sensors:
System Temperatures: cpu: 46.0 C mobo: 40.0 C gpu: nvidia temp: 60 C
Fan Speeds (RPM): cpu: 0 gpu: nvidia fan: 26%
Info:
Processes: 424 Uptime: 1h 58m wakeups: 1 Memory: total: 32 GiB
available: 31.25 GiB used: 7.02 GiB (22.4%) Init: systemd v: 254
default: graphical tool: systemctl Compilers: gcc: 13.2.1 Packages: 1850
pm: pacman pkgs: 1844 libs: 533 tools: octopi,pamac,paru pm: flatpak pkgs: 6
Shell: fish v: 3.6.1 default: Bash v: 5.1.16 running-in: konsole
inxi: 3.3.28
Garuda (2.6.16-1):
System install date:     2023-08-02
Last full system update: 2023-08-02
Is partially upgraded:   No
Relevant software:       timeshift(custom) NetworkManager dracut nvidia-dkms
Windows dual boot:       No/Undetected
Failed units:

I don't see the big deal. You were thread locked because your help request didn't follow the template then just do so. Add garuda-inxi like asked to your og post (yes, you can still edit it) and it will be unlocked by the mods. :person_shrugging: Seems like a pretty simple thing to do.

6 Likes

This forum is not a general technical support forum, although many non-Garuda questions are answered here.
We want to avoid repeating here everything that is already on the Internet.

Filo and I have shown you the way to find a solution.
In the template is even how to learn to search correctly.

But you seem to want a bite-sized answer?

3 Likes

@filo has already linked the Arch and Network Manager documentation. Another method is through your router setup utility. Check your router's documentation for this option. Most routers allow setting a static IP via MAC address association. Different router manufacturers may use different terms for this. As we do not know your exact router model and it's setup procedure, you will need to familiarize yourself with how your router implements this feature.

It's usually very simple to accomplish this once you login to your router's configuration utility. Doing it in this manner also has the benefit of adding an extra security layer to your home network.

3 Likes

I get thinking for such a simple question your inxi shouldn't be required. It is abit silly in this instance, but you were asked nicely to provide it, so why not just simply provide it since it only takes a few seconds?

The point of the inxi output requirement is so that each issue request has a baseline of information available to troubleshoot, eliminating a commonplace back-and-forth question/answer routine, which can oftentimes drag out resolving even very simple issues due to the fact that we are a global community, with users and helpers in many different time zones.

The thing is, it only really works if we insist that everyone does it no matter what. If users only provide the output when they think the information is relevant, then no one will provide the inxi output until they are asked for it and we're basically back to square one. Either we insist the inxi is always provided for any issue (the presently enforced system), or we may as well scrap it from the template entirely.


Changing your IP address on the device is very easily done with nmcli. First, list the connections on your device:

nmcli con show

Then, change the IP address with con mod.

nmcli con mod ens01 ipv4.addresses 192.168.1.234/24

You can learn more about how to configure network settings with nmcli in any of the abundantly available tutorials online, such as this one:

Do note that whether this method is successful or not depends entirely on the rest of the network stack. Nowadays, most networks assign devices an IP address with a DHCP server. Devices don't just waltz into the network and announce their own IP address, they ask for an IP address to be given to them. The DHCP server decides if they will get an IP address, and what the IP address will be.

If a device announces to the network that it has an IP address which the DHCP server has not assigned it, many DHCP servers will honor that--or at least try to; it needs to be an IP address on the correct subnet with the appropriate subnet mask, etc. However, whether or not this will be the case depends on the devices that manage IP assignment on your network and how they have been configured.

As others have pointed out, if you want to change a device's IP address the best way to do that will be to assign the device an IP address from the DHCP server--not from the device itself. On home networks, it is common for the gateway to also be the DHCP server. If this is a device you have access to, figure out how to log in to it from the manufacturer's support documentation and see if there is a management console available. Typically SOHO routers will serve a simple web page where you can manipulate settings like this in a GUI. Then, identify the device you want to change the IP address for, assign it a static lease, and give it the IP address you want it to have.

5 Likes

Understood

Now that this thread has been marked solved I will relocate the thread to the networking category, (in case others are looking for this info in the future).

There actually is a method to our madness @Nezmin2. We try to teach our users how to solve issues for themselves by not quickly handing out solutions to everything on a silver platter. It''s not to be A-holes, it's to help empower our users. In the long run this hopefully helps our users to become confident with their problem solving abilities.

You will eventually get used to our methods on the Garuda forum. Some people initially find our ways off-putting, but after a while they realize it is to everyone's benefit.

Welcome to thee Garuda community @Nezmin2 . :wave:

3 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.