diff options
author | Himbeer <himbeer@disroot.org> | 2024-09-07 23:38:46 +0200 |
---|---|---|
committer | Himbeer <himbeer@disroot.org> | 2024-09-07 23:38:46 +0200 |
commit | 4fae1df7f2eaea645521c7044c8306fa620f5851 (patch) | |
tree | 2d6b128079962e988f06d73d70aca173505da446 | |
parent | 2ec1a6de2857f5a81946ad0cf39695cc4bec6a71 (diff) |
Configure 192.168.100.2/24 on eth1
My particular modem uses a different address range, but this is the
standard range found on most other devices. To maximize compatibility
with future modems this range should be included as well.
-rw-r--r-- | src/main.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index fa381b4..457930f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -95,7 +95,7 @@ fn main() -> Result<()> { conn.link_set("eth1".into(), true)?; configure_modem(&conn)?; - println!("[info] config eth1 192.168.1.2/24 (modem)"); + println!("[info] config eth1 192.168.1.2/24 192.168.100.2/24 (modem)"); configure_carrier(&conn)?; println!("[info] config carrier0 eth1.{}", VLAN_TAG); @@ -154,6 +154,7 @@ fn configure_vlans(conn: &Connection) -> Result<()> { fn configure_modem(conn: &Connection) -> Result<()> { conn.address_flush("eth1".into())?; conn.address_add("eth1".into(), "192.168.1.2".parse()?, 24)?; + conn.address_add("eth1".into(), "192.168.100.2".parse()?, 24)?; Ok(()) } |