--- title: "Configuring basic network settings using the CLI" slug: "configuring-basic-network-settings-using-the-cli-5" tags: ["Product Usage", "CMS 11.x", "EX 11.x", "FX 11.x", "AX 11.x", "NX 11.x", "IVX 11.x", "Customer", "Network Security"] updated: 2026-09-07T20:58:12Z published: 2026-09-07T20:58:12Z canonical: "docs.trellix.com/configuring-basic-network-settings-using-the-cli-5" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Configuring basic network settings using the CLI Use the commands in this topic to configure the network settings manually. **To configure basic network settings:** 1. Go to CLI configuration mode: ``` hostname > enable hostname # configure terminal ``` 2. To disable DHCP for the interface: ``` hostname (config) # no interface ether1 dhcp ``` > [!NOTE] > Note > > If you use DHCP and there is no network connection for the management interface, do the following: > > 1. Restore the network connection. > 2. Disable DHCP. > 3. Enable DHCP. 3. Set the interface IP address and network mask. For example: ``` hostname (config) # interface ether1 ip address 1.1.1.1 255.240.0.0 ``` 4. Specify the default gateway. For example: ``` hostname (config) # ip default-gateway 1.1.1.2 ether1 ``` 5. Specify a DNS server. For example: ``` hostname (config) # ip name-server 10.10.20.5 ``` 6. Save your changes. ``` hostname (config) # write memory ```