Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Connection-modify #29

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions docs/07-Networking/Connection-modify.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Supose you want to make some changens in available network profile with the following parameter:
Configure your Host Name, IP Address, Gateway and DNS.

Host name : saminfo.local
hostname : abc.com
IP Address : 172.168.130.38
Subnet : 255.255.255.0
Gateway : 172.168.130.1
DNS : 172.168.130.1

## Follow this steps
##### Step 1: check all devices status first.
`# nmcli dev status`
##### Step 2: select any connection profile that you want to modify. and make changes for IP addresses and Gateway(e.g "static" as a profile name for this practical)
`# nmcli con mod static ipv4.addresses 172.168.130.38/24 ipv4.gateway 172.168.130.1 ipvr.method manual `
##### Step 3: Add DNS Configuration
`# nmcli con mod static ipv4.dns 172.168.130.1`
##### Step 4: replicate all changes on the network.
`# nmcli con up static`
##### Step 5: set hostname to saminfo.local
`# hostnamectl`
`# hostnamectl set-hostname saminfo.local`
`# hostname`


##Done